Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
Parameter-ize role ARNs (#227)
Browse files Browse the repository at this point in the history
Changed hardcoded ARNs to reference arn attribute of each role.
  • Loading branch information
gregwhorley authored and pingles committed Mar 14, 2019
1 parent adf03bb commit 27bbd37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/IAM.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ resource "aws_iam_role_policy" "server_node" {
"Action": [
"sts:AssumeRole"
],
"Resource": "arn:aws:iam:123456789012:role/kiam-server"
"Resource": "${aws_iam_role.server_role.arn}"
}
]
}
Expand All @@ -101,7 +101,7 @@ resource "aws_iam_role" "server_role" {
"Sid": "",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::123456789012:role/server_node"
"AWS": "${aws_iam_role.server_node.arn}"
},
"Action": "sts:AssumeRole"
}
Expand Down

0 comments on commit 27bbd37

Please sign in to comment.