Skip to content

Commit

Permalink
Leading space characters are not allowed for inline policies. (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
jefchien authored Oct 30, 2023
1 parent b048a62 commit b5fe490
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions terraform/eks/daemon/emf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,19 @@ resource "aws_iam_role" "node_role" {
name = "cwagent-eks-Worker-Role-${module.common.testing_id}"

assume_role_policy = <<POLICY
{
"Version": "2012-10-17",
"Statement": [
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "ec2.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
"Effect": "Allow",
"Principal": {
"Service": "ec2.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
POLICY
]
}
POLICY
}

resource "aws_iam_role_policy_attachment" "node_AmazonEKSWorkerNodePolicy" {
Expand Down

0 comments on commit b5fe490

Please sign in to comment.