Skip to content
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

Format verbs used as resource names not replaced #48

Closed
gdavison opened this issue Apr 19, 2021 · 0 comments · Fixed by #67
Closed

Format verbs used as resource names not replaced #48

gdavison opened this issue Apr 19, 2021 · 0 comments · Fixed by #67

Comments

@gdavison
Copy link
Contributor

When a configuration contains a resource where the name is a format verb, the format verb is not replaced, causing HCL parsing to fail.

For example, in https://github.com/hashicorp/terraform-provider-aws/blob/38319aa13aea65d3e946450c1f881d8fef12e734/aws/resource_aws_quicksight_user_test.go#L195-L203

data "aws_caller_identity" "current" {}

resource "aws_quicksight_user" %[1]q {
  aws_account_id = data.aws_caller_identity.current.account_id
  user_name      = %[1]q
  email          = %[2]q
  identity_type  = "QUICKSIGHT"
  user_role      = "READER"
}

Expected Result

The line resource "aws_quicksight_user" %[1]q { should be replaced with something parseable as HCL

Actual Result

The line resource "aws_quicksight_user" %[1]q { is not changed, causing HCL parsing to fail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant