1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

特定のタグのついたセキュリティグループ内容を編集だけできるIAMポリシー

Last updated at Posted at 2015-02-27

特定のタグのついたセキュリティグループの内容を「編集だけ」できるIAMポリシーです。

{TagName},{TagValue} を任意のタグ名と値ものに置き換えてください。

{
   "Version": "2012-10-17",
   "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "ec2:AuthorizeSecurityGroupEgress",
        "ec2:AuthorizeSecurityGroupIngress",
        "ec2:RevokeSecurityGroupEgress",
        "ec2:RevokeSecurityGroupIngress"
      ],
      "Condition": {
        "StringLike": {
          "ec2:ResourceTag/{Tagname}": "{TagValue}" 
        }
      },
      "Resource": [
        "*"
      ]
    }
  ]
}

まとめ

AWSで好きなサービスはIAMです。

 
 
#他のIAMの記事
http://qiita.com/simeji/items/3d59abdf0d3795438459

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?