-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: leading whitespace causes aws_iam_policy to incorrectly report valid JSON policies as invalid #16319
Comments
Aaand this is in the wrong repo. |
just ran into this issue, thanks |
lame. Can we please fix? Thanks |
The AWS provider has moved out of the main terraform repo, and this bug report has moved here: hashicorp/terraform-provider-aws#1873 |
I had the same problem and got it fixed by removing all the spaces before the left curly brace that is immediately after the <<EOF, that curly brace should be on it's own line and position 0. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
0.10.7, 0.9.11
Terraform Configuration Files
Expected Behavior
The policy was applied
Actual Behavior
Important Factoids
Removing the whitespace before the first character in the policy allows it to be applied:
According to RFC 4627, "Insignificant whitespace is allowed before or after any of the six structural characters."
References
#11906 is where the JSON validation was applied.
The text was updated successfully, but these errors were encountered: