Skip to content

terraform plan produces invalid hcl when there are colons in property identifiers #21749

@jleclanche

Description

@jleclanche

Terraform Version

Terraform v0.12.1
+ provider.aws v2.13.0

Steps to Reproduce

I created a resource "aws_iam_role" with an assume_role_policy which changed. Part of that role policy had a key called SAML:aud. That key needs to be quoted in order to be valid in the plan output, but it was not.

image

Additional Context

Since the plan output is not actually meant to be used directly it shouldn't matter, but this may reflect a deeper potential issue with unquoted keys / keys with colons / etc.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions