Skip to content

Commit d93a56b

Browse files
authored
Fix JSON spacing for Cloud9 IAM Policy
This fixes this error when trying to deploy the policy: ```An error occurred (MalformedPolicyDocument) when calling the CreateRole operation: JSON strings must not have leading spaces``` Signed-off-by: emile baizel <[email protected]>
1 parent 32d66f7 commit d93a56b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

docs/setup-cloud9.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ Create an instance profile called **Cloud9-Developer-Access**
1616

1717
```bash
1818
cat > ec2-trust-policy.json <<EOF
19-
{
20-
"Version": "2012-10-17",
21-
"Statement": [
22-
{
23-
"Effect": "Allow",
24-
"Principal": {
25-
"Service": "ec2.amazonaws.com"
26-
},
27-
"Action": "sts:AssumeRole"
28-
}
29-
]
30-
}
19+
{
20+
"Version": "2012-10-17",
21+
"Statement": [
22+
{
23+
"Effect": "Allow",
24+
"Principal": {
25+
"Service": "ec2.amazonaws.com"
26+
},
27+
"Action": "sts:AssumeRole"
28+
}
29+
]
30+
}
3131
EOF
3232
```
3333

0 commit comments

Comments
 (0)