Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit access by account as well as IAM principal #9

Merged
merged 1 commit into from
Jul 23, 2021

Conversation

fishnix
Copy link
Contributor

@fishnix fishnix commented Jul 19, 2021

This locks down access to the repository to the AWS account where the ECR lives.

Copy link

@tenyo tenyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

groupConditions := append([]string{"${aws:ResourceTag/spinup:spaceid}"}, groups...)
principal := fmt.Sprintf("arn:aws:iam::%s:root", account)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works, but I think you can also use just the account, e.g.
"Principal": { "AWS": "123456789012" }

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting, i made the change in the console and this was what came out so i copied it :)

@fishnix fishnix merged commit 0a91cab into master Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants