FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

aws_iam_role_policy_attachment

Attaches a Managed IAM Policy to an IAM role

resource "aws_iam_role" "role" {
    name = "test-role"
}

resource "aws_iam_policy" "policy" {
    name = "test-policy"
    description = "A test policy"
    policy = 	#omitted
}

resource "aws_iam_role_policy_attachment" "test-attach" {
    role = "${aws_iam_role.role.name}"
    policy_arn = "${aws_iam_policy.policy.arn}"
}

Argument Reference

The following arguments are supported:


See the source of this document at Terraform.io