FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

aws_iam_group_policy

Provides an IAM policy attached to a group.

Example Usage

resource "aws_iam_group_policy" "my_developer_policy" {
    name = "my_developer_policy"
    group = "${aws_iam_group.my_developers.id}"
    policy = <<EOF
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Action": [
        "ec2:Describe*"
      ],
      "Effect": "Allow",
      "Resource": "*"
    }
  ]
}
EOF
}

resource "aws_iam_group" "my_developers" {
    name = "developers"
    path = "/users/"
}

Argument Reference

The following arguments are supported:

Attributes Reference


See the source of this document at Terraform.io