Created
May 8, 2019 19:11
-
-
Save shcallaway/ff4ad124af4f85c1fd6e2a6affdd3c69 to your computer and use it in GitHub Desktop.
Apply the same repository policy to all ECR repositories
This file contains 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
#!/bin/bash | |
aws ecr describe-repositories | jq '.repositories[].repositoryName' | xargs -I {} aws ecr put-repository-policy --repository-name {} --policy-text "file://policy.json" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment