Last active
July 30, 2021 02:25
-
-
Save takenoko-str/64572193af0058dca06156b38b1ab992 to your computer and use it in GitHub Desktop.
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Deny", | |
"Action": "elasticloadbalancing:*", | |
"Resource": "*", | |
"Condition": { | |
"StringEquals": { | |
"elasticloadbalancing:ResourceTag/environment": "production" | |
} | |
} | |
}, | |
{ | |
"Sid": "VisualEditor1", | |
"Effect": "Deny", | |
"Action": "ec2:*", | |
"Resource": "*", | |
"Condition": { | |
"StringEqualsIfExists": { | |
"ec2:ResourceTag/environment": "production" | |
} | |
} | |
}, | |
{ | |
"Sid": "VisualEditor2", | |
"Effect": "Deny", | |
"Action": "rds:*", | |
"Resource": "*", | |
"Condition": { | |
"StringEquals": { | |
"aws:ResourceTag/environment": "production" | |
} | |
} | |
} | |
] | |
} |
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
よく分かる説明 | grep "${aws:PrincipalTag/team}" | |
https://www.infoq.com/jp/news/2019/03/iam-tags-attribute-based-access/ | |
練習問題 | grep ${aws:PrincipalTag/project} | |
https://www.slideshare.net/AmazonWebServices/become-an-iam-policy-master-in-60-minutes-or-less-sec316r1-aws-reinvent-2018pdf | |
S3応用問題 | grep ${aws:username} | |
https://aws.amazon.com/jp/premiumsupport/knowledge-center/iam-s3-user-specific-folder/ | |
その他よくある質問集 | grep IAM | |
https://aws.amazon.com/jp/premiumsupport/knowledge-center/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment