Closed mikalai-hryb closed 10 months ago
name
of the resource is this
, so it should be omitted:
- If the output is returning a value with interpolation functions and multiple resources, {name} and {type} there should be as generic as possible (this as prefix should be omitted).
Not good: this_security_group_id Good: security_group_id
When I was reading about the naming convention I faced this line
It's not clear what
type
is and how it can look. I was not able to understand it from the examples https://www.terraform-best-practices.com/naming#code-examples-of-outputIt seems the examples use
{name}_{attribute}
patternCan someone please explain to me what
type
is?