Skip to content

Instantly share code, notes, and snippets.

@shcallaway
Created May 8, 2019 19:11
Show Gist options
  • Save shcallaway/ff4ad124af4f85c1fd6e2a6affdd3c69 to your computer and use it in GitHub Desktop.
Save shcallaway/ff4ad124af4f85c1fd6e2a6affdd3c69 to your computer and use it in GitHub Desktop.
Apply the same repository policy to all ECR repositories
#!/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