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

Commit

Permalink
docs(iam): fix terraform formatting (#207)
Browse files Browse the repository at this point in the history
Remove leading whitespace before curl brace in policy and apply terraform fmt.
  • Loading branch information
jlegrone authored and Joseph-Irving committed Jan 8, 2019
1 parent 8c3c236 commit 6f306df
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions docs/IAM.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ connected.
```hcl
resource "aws_iam_role" "server_node" {
name = "server_node"
assume_role_policy = <<EOF
{
"Version": "2012-10-17",
Expand All @@ -62,12 +63,13 @@ resource "aws_iam_role" "server_node" {
}
EOF
}
resource "aws_iam_role_policy" "server_node" {
name = "server_node"
role = "${aws_iam_role.server_node.name}"
policy = <<EOF
{
{
"Version": "2012-10-17",
"Statement": [
{
Expand All @@ -81,16 +83,16 @@ resource "aws_iam_role_policy" "server_node" {
}
EOF
}
resource "aws_iam_instance_profile" "server_node" {
name = "server_node"
role = "${aws_iam_role.server_node.name}"
}
resource "aws_iam_role" "server_role" {
name = "kiam-server"
name = "kiam-server"
description = "Role the Kiam Server process assumes"
assume_role_policy = <<EOF
{
"Version": "2012-10-17",
Expand All @@ -109,11 +111,11 @@ EOF
}
resource "aws_iam_policy" "server_policy" {
name = "kiam_server_policy"
name = "kiam_server_policy"
description = "Policy for the Kiam Server process"
policy = <<EOF
{
{
"Version": "2012-10-17",
"Statement": [
{
Expand All @@ -129,8 +131,8 @@ EOF
}
resource "aws_iam_policy_attachment" "server_policy_attach" {
name = "kiam-server-attachment"
roles = ["${aws_iam_role.server_role.name}"]
name = "kiam-server-attachment"
roles = ["${aws_iam_role.server_role.name}"]
policy_arn = "${aws_iam_policy.server_policy.arn}"
}
```
Expand Down

0 comments on commit 6f306df

Please sign in to comment.