terraform-demo/modules/iam-policy-attach/main.tf

5 lines
155 B
HCL

resource "aws_iam_policy_attachment" "test-attach" {
name = "${var.iam_name}-att"
roles = ["${var.role_name}"]
policy_arn = "${var.arn}"
}