Omit Quotes In Terraform Resource Type And Name
See original GitHub issueFeature Request
Terraform 0.12+ allows to omit redundant quotes around resource type and name. Please could you make it configurable in “Editor –> Code Style –> Terraform Config”?
Terraform Configuration Example
resource aws_sns_topic opsgenie_service_health {
name = "opsgenie-service-health"
}
Issue Analytics
- State:
- Created 4 years ago
- Reactions:14
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Quoting types and identifiers - Terraform - HashiCorp Discuss
Working on a configuration recently, I created a resource but forgot to quote the type and name. Eg instead of: resource "null_resource" " ......
Read more >How to remove Terraform double quotes? - Stack Overflow
I solved by adding --raw parameter to terraform output. WebAppNameDev=$(terraform output --raw appservice_name_dev).
Read more >Naming conventions - Terraform Best Practices
The conventions in this book refer to Terraform names themselves. ... Do not repeat resource type in resource name (not partially, nor completely):....
Read more >aws_ecs_task_definition | Resources | hashicorp/aws
If directly setting the JSON, they should be escaped as \" in the JSON, e.g., "value": "I \"love\" escaped quotes" . If using...
Read more >Best practices for using Terraform | Google Cloud
Name all configuration objects using underscores to delimit multiple words. This practice ensures consistency with the naming convention for resource types, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@VladRassokhin Thank you for the patience 🙇
This is not more relevant. Here is a comment from HashiCorp representative:
and further MR making formatter not happy with unquoted labels.
References