diff --git a/terraform/api_gateway_v2_nocache/terraform.tf b/terraform/api_gateway_v2_nocache/terraform.tf index f385891..ffcee86 100644 --- a/terraform/api_gateway_v2_nocache/terraform.tf +++ b/terraform/api_gateway_v2_nocache/terraform.tf @@ -7,7 +7,7 @@ provider "aws" { alias = "root" region = var.region assume_role { - role_arn = "arn:aws:iam::463546384433:role/terraform-xaccount" + role_arn = var.role_arn session_name = "terraform-xaccount" external_id = "terraform" } diff --git a/terraform/api_gateway_v2_nocache/variables.tf b/terraform/api_gateway_v2_nocache/variables.tf index 2581ff3..b7c8438 100644 --- a/terraform/api_gateway_v2_nocache/variables.tf +++ b/terraform/api_gateway_v2_nocache/variables.tf @@ -33,4 +33,8 @@ variable "tags" { default = null } -variable "region" { default = "us-west-2" } \ No newline at end of file +variable "region" { default = "us-west-2" } + +variable "role_arn" { + default = "arn:aws:iam::463546384433:role/terraform-xaccount" +} \ No newline at end of file