Skip to content

Instantly share code, notes, and snippets.

@simeji
Created February 27, 2015 02:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simeji/94454b59007c9856e5e1 to your computer and use it in GitHub Desktop.
Save simeji/94454b59007c9856e5e1 to your computer and use it in GitHub Desktop.
特定のタグのついたセキュリティグループ内容を編集だけできるIAMポリシー ref: http://qiita.com/simeji/items/dc32b2dec0362376258f
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ec2:AuthorizeSecurityGroupEgress",
"ec2:AuthorizeSecurityGroupIngress",
"ec2:RevokeSecurityGroupEgress",
"ec2:RevokeSecurityGroupIngress"
],
"Condition": {
"StringLike": {
"ec2:ResourceTag/{Tagname}": "{TagValue}"
}
},
"Resource": [
"*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment