github.com/wata727/tflint@v0.12.2-0.20191013070026-96dd0d36f385/docs/rules/terraform_dash_in_resource_name.md (about) 1 # terraform_dash_in_resource_name 2 3 Disallow dashes (-) in `resource` names. 4 5 ## Example 6 7 ```hcl 8 resource "aws_eip" "dash-name" { 9 } 10 11 resource "aws_eip" "no_dash_name" { 12 } 13 ``` 14 15 ``` 16 $ tflint 17 1 issue(s) found: 18 19 Notice: `dash-name` resource name has a dash (terraform_dash_in_resource_name) 20 21 on template.tf line 1: 22 1: resource "aws_eip" "dash-name" { 23 24 Reference: https://github.com/wata727/tflint/blob/v0.11.0/docs/rules/terraform_dash_in_resource_name.md 25 26 ``` 27 28 ## Why 29 30 Naming conventions are optional, so it is not necessary to follow this. But this rule is useful if you want to force the following naming conventions in line with the [Terraform Plugin Naming Best Practices](https://www.terraform.io/docs/extend/best-practices/naming.html). 31 32 ## How To Fix 33 34 Use underscores (_) instead of dashes (-).