Skip to content

Commit

Permalink
Merge pull request #30 from asciigirl/tfv012
Browse files Browse the repository at this point in the history
Update syntax for Terraform v0.12
  • Loading branch information
angelconcepcion committed Sep 3, 2020
2 parents 8e9351f + 64087b1 commit c823619
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ Get created ARN and External ID to use in CHT portal
terraform output -module=cloudhealth-iam-role
```

Requirements
------------
terraform-cloudhealth-iam >= v0.1.0 - Requires Terraform >= 0.12
terraform-cloudhealth-iam <= v0.0.18 - Requires Terraform <= 0.11

License and Authors
-------------------
Expand Down
6 changes: 3 additions & 3 deletions role/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
output "cloudhealth-role-arn" {
value = "${aws_iam_role.cht_iam_role.arn}"
value = aws_iam_role.cht_iam_role.arn
}

output "external-id" {
value = "${var.external-id}"
value = var.external-id
}

output "cloudhealth-policy-arn" {
value = "${aws_iam_policy.cht_iam_policy.arn}"
value = aws_iam_policy.cht_iam_policy.arn
}
8 changes: 4 additions & 4 deletions role/role.tf
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ data "template_file" "default-s3-ecs-bucket-policy" {
}

resource "aws_iam_role" "cht_iam_role" {
name = "${var.role-name}"
name = var.role-name
path = "/"

assume_role_policy = <<POLICY
Expand All @@ -113,7 +113,7 @@ POLICY
}

resource "aws_iam_policy" "cht_iam_policy" {
name = "${var.role-name}"
name = var.role-name

policy = <<POLICY
{
Expand All @@ -135,6 +135,6 @@ POLICY
}

resource "aws_iam_role_policy_attachment" "cht_aws_iam_role_policy_attachment" {
role = "${aws_iam_role.cht_iam_role.name}"
policy_arn = "${aws_iam_policy.cht_iam_policy.arn}"
role = aws_iam_role.cht_iam_role.name
policy_arn = aws_iam_policy.cht_iam_policy.arn
}

0 comments on commit c823619

Please sign in to comment.