Commit e32398db authored by Rob Greenwood's avatar Rob Greenwood

Corrected names of the role and policy to make existing manual ones

parent b2d64e53
Pipeline #657 passed with stage
in 6 seconds
......@@ -17,17 +17,17 @@ data "template_file" "assume_role" {
}
resource "aws_iam_role" "main" {
name = "cloudcheckr"
name = "CloudCheckr"
assume_role_policy = "${data.template_file.assume_role.rendered}"
}
resource "aws_iam_policy" "main" {
name = "cloudcheckr"
name = "CloudCheckr"
policy = "${file("${path.module}/role_policy.json")}"
}
resource "aws_iam_policy_attachment" "main" {
name = "cloudcheckr"
name = "CloudCheckr"
roles = ["${aws_iam_role.main.name}"]
policy_arn = "${aws_iam_policy.main.arn}"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment