Skip to content

Commit

Permalink
Merge pull request #18 from castingnetworks/route53_error
Browse files Browse the repository at this point in the history
Change cross account role as variable
  • Loading branch information
djadav-devops authored Jul 22, 2024
2 parents f7cfde3 + 5bafda3 commit f498d7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion terraform/api_gateway_v2_nocache/terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
6 changes: 5 additions & 1 deletion terraform/api_gateway_v2_nocache/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,8 @@ variable "tags" {
default = null
}

variable "region" { default = "us-west-2" }
variable "region" { default = "us-west-2" }

variable "role_arn" {
default = "arn:aws:iam::463546384433:role/terraform-xaccount"
}

0 comments on commit f498d7a

Please sign in to comment.