Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard-Barrett committed May 11, 2024
1 parent c665e6a commit 7067573
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
4 changes: 3 additions & 1 deletion examples/complete/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ No resources.

## Inputs

No inputs.
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_notification_channel"></a> [notification\_channel](#input\_notification\_channel) | The notification channel for the pipe. | `string` | `"arn:aws:sns:us-west-2:123456789012:my-channel"` | no |

## Outputs

Expand Down
18 changes: 16 additions & 2 deletions examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,29 @@ terraform {

provider "snowflake" {}

variable "notification_channel" {
description = "The notification channel for the pipe."
type = string
default = "arn:aws:sns:us-west-2:123456789012:my-channel"

}
module "snowflake_pipe" {
source = "../.." # Path to the root of the snowflake-pipe module

# Pipe variables
auto_ingest = true
aws_sns_topic_arn = "arn:aws:sns:us-west-2:123456789012:my-topic"
notification_channel = "arn:aws:sns:us-west-2:123456789012:my-channel"
notification_channel = var.notification_channel
comment = "This is my pipe"
copy_statement = "COPY INTO my_table FROM @my_stage"

copy_statement = <<EOF
COPY INTO my_table
FROM @my_stage
FILE_FORMAT = (TYPE = 'CSV' FIELD_DELIMITER = ',' SKIP_HEADER = 1)
ON_ERROR = 'CONTINUE'
NOTIFY = '${var.notification_channel}'
EOF

database = "my_database"
name = "my_pipe"
schema = "my_schema"
Expand Down

0 comments on commit 7067573

Please sign in to comment.