Created
October 18, 2021 15:15
-
-
Save KyMidd/2d7b797a05cf84725380c2a9e42f526f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data "aws_iam_policy_document" "aws_ecr_repository_policy" { | |
| statement { | |
| sid = "KeyVaultPolicyForAccounts" | |
| effect = "Allow" | |
| principals { | |
| type = "AWS" | |
| identifiers = [for k in local.account_ids : "arn:aws:iam::${k}:root"] | |
| } | |
| actions = [ | |
| "ecr:GetDownloadUrlForLayer", | |
| "ecr:BatchGetImage", | |
| "ecr:BatchCheckLayerAvailability", | |
| ] | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment