Skip to content

Commit

Permalink
Merge pull request #14 from ministryofjustice/feature/interpolate-acc…
Browse files Browse the repository at this point in the history
…ount-id

Replace account id
  • Loading branch information
mtrbls authored Mar 27, 2019
2 parents 1d8821d + beb6036 commit f28ea0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ provider "aws" {
*
*/
module "example_team_ecr_credentials" {
source = "github.com/ministryofjustice/cloud-platform-terraform-ecr-credentials?ref=3.0"
source = "github.com/ministryofjustice/cloud-platform-terraform-ecr-credentials?ref=3.1"
repo_name = "example-module"
team_name = "example-team"
aws_region = "eu-west-2" # this overwrite the region from the provider defined above.
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ data "aws_iam_policy_document" "policy" {
]

resources = [
"arn:aws:ecr:eu-west-1:926803513772:repository/${var.team_name}/*",
"arn:aws:ecr:${var.aws_region}:${data.aws_caller_identity.current.account_id}:repository/${var.team_name}/*",
]
}
}
Expand Down

0 comments on commit f28ea0f

Please sign in to comment.