Skip to content

Commit

Permalink
Fix assume_role
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Ainsworth committed Nov 9, 2023
1 parent 7849e0f commit 646fd9e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
12 changes: 5 additions & 7 deletions terraform/account/terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ terraform {
required_version = "<= 1.6.3"

backend "s3" {
bucket = "opg.terraform.state"
key = "opg-use-my-lpa-shared/terraform.tfstate"
encrypt = true
region = "eu-west-1"
assume_role {
role_arn = "arn:aws:iam::311462405659:role/opg-use-an-lpa-ci"
}
bucket = "opg.terraform.state"
key = "opg-use-my-lpa-shared/terraform.tfstate"
encrypt = true
region = "eu-west-1"
role_arn = "arn:aws:iam::311462405659:role/opg-use-an-lpa-ci"
dynamodb_table = "remote_lock"
}

Expand Down
12 changes: 5 additions & 7 deletions terraform/environment/terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ terraform {
required_version = "<= 1.6.3"

backend "s3" {
bucket = "opg.terraform.state"
key = "opg-use-my-lpa-environment/terraform.tfstate"
encrypt = true
region = "eu-west-1"
assume_role {
role_arn = "arn:aws:iam::311462405659:role/opg-use-an-lpa-ci"
}
bucket = "opg.terraform.state"
key = "opg-use-my-lpa-environment/terraform.tfstate"
encrypt = true
region = "eu-west-1"
role_arn = "arn:aws:iam::311462405659:role/opg-use-an-lpa-ci"
dynamodb_table = "remote_lock"
}

Expand Down

0 comments on commit 646fd9e

Please sign in to comment.