You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that << heredoc used, <<- fixes problem as leading indentation removed.
Actual Behavior
Error putting IAM role policy terraform-00548fa690bb6d77afd48870ec: MalformedPolicyDocument: The policy failed legacy parsing
status code: 400,
Caused by leading spaces before opening brace ({) in policy definition
Expected Behavior
Validation should fail for such policies or Terraform should silently remove leading spaces
As validation, Terraform could do simple json validation of policies.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered:
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.9.5
Affected Resource(s)
And probably all other resources related to IAM policies
Terraform Configuration Files
Note that
<<
heredoc used,<<-
fixes problem as leading indentation removed.Actual Behavior
Caused by leading spaces before opening brace (
{
) in policy definitionExpected Behavior
Validation should fail for such policies or Terraform should silently remove leading spaces
As validation, Terraform could do simple json validation of policies.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: