From 80a8c7c6f3a25cdd0ee4e96e8a5006c47fe47f0f Mon Sep 17 00:00:00 2001 From: Prasanth <72515998+sfc-gh-pkommini@users.noreply.github.com> Date: Thu, 30 Jun 2022 17:14:27 -0700 Subject: [PATCH] Support ARN format. (#69) * Support ARN format. * Support ARN format. --- examples/complete/main.tf | 1 + examples/complete/variables.tf | 6 ++++++ storage_integration.tf | 1 + 3 files changed, 8 insertions(+) diff --git a/examples/complete/main.tf b/examples/complete/main.tf index 6276658..ac300a5 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -6,6 +6,7 @@ module "geff" { env = var.env # AWS + arn_format = var.arn_format aws_cloudwatch_metric_namespace = var.aws_cloudwatch_metric_namespace aws_region = var.aws_region diff --git a/examples/complete/variables.tf b/examples/complete/variables.tf index 976626d..bbd9981 100644 --- a/examples/complete/variables.tf +++ b/examples/complete/variables.tf @@ -97,6 +97,12 @@ variable "sentry_driver_dsn" { default = "" } +variable "arn_format" { + type = string + description = "ARN format could be aws or aws-us-gov. Defaults to non-gov." + default = "aws" +} + data "aws_caller_identity" "current" {} locals { diff --git a/storage_integration.tf b/storage_integration.tf index 9b19f49..eeae0cc 100644 --- a/storage_integration.tf +++ b/storage_integration.tf @@ -6,6 +6,7 @@ module "storage_integration" { env = var.env # AWS + arn_format = var.arn_format data_bucket_arns = var.data_bucket_arns snowflake_integration_user_roles = var.snowflake_integration_user_roles