Skip to content

Commit

Permalink
Support Gov Cloud. (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pkommini authored Jul 10, 2022
1 parent 40a19b8 commit 289de2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api_integration.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resource "snowflake_api_integration" "geff_api_integration" {

name = "${upper(replace(var.prefix, "-", "_"))}_API_INTEGRATION"
enabled = true
api_provider = "aws_api_gateway"
api_provider = length(regexall(".*gov.*", local.aws_region)) > 0 ? "AWS_GOV_API_GATEWAY" : "AWS_API_GATEWAY"
api_allowed_prefixes = [local.inferred_api_gw_invoke_url]
api_aws_role_arn = "arn:${var.arn_format}:iam::${local.account_id}:role/${local.api_gw_caller_role_name}"
}
Expand Down

0 comments on commit 289de2a

Please sign in to comment.