Skip to content

Commit

Permalink
update chapter 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Winkler authored and Scott Winkler committed Sep 2, 2019
1 parent e268c13 commit 4a0c5ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chapter6/part1_s3backend/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ locals {
}

resource "aws_iam_role" "iam_role" {
name = "tf-assume-role"

name = "${var.namespace}-tf-assume-role"
force_detach_policies = true
assume_role_policy = <<-EOF
{
"Version": "2012-10-17",
Expand Down Expand Up @@ -57,7 +57,7 @@ data "aws_iam_policy_document" "policy_doc" {
}

resource "aws_iam_policy" "iam_policy" {
name = "tf-policy"
name = "${var.namespace}-tf-policy"
path = "/"
policy = data.aws_iam_policy_document.policy_doc.json
}
Expand Down

0 comments on commit 4a0c5ea

Please sign in to comment.