diff --git a/examples/complete/README.md b/examples/complete/README.md index 2f1c946..d164c0e 100644 --- a/examples/complete/README.md +++ b/examples/complete/README.md @@ -25,7 +25,9 @@ No resources. ## Inputs -No inputs. +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| [notification\_channel](#input\_notification\_channel) | The notification channel for the pipe. | `string` | `"arn:aws:sns:us-west-2:123456789012:my-channel"` | no | ## Outputs diff --git a/examples/complete/main.tf b/examples/complete/main.tf index 93de8c3..2d103ff 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -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 = <