How would you reference the attribute "name" of this fictitious resource in HCL?
How would you reference the attribute "name" of this fictitious resource in HCL?
To reference the attribute 'name' of the resource 'kubernetes_namespace' named 'example' in HCL (HashiCorp Configuration Language), the correct syntax is 'kubernetes_namespace.example.name'. This follows the standard format: resource_type.resource_name.attribute_name.
Correct answer is C. References to Resource Attributes Doc: https://www.terraform.io/language/expressions/references#references-to-resource-attributes
https://www.terraform.io/language/expressions/references#references-to-resource-attributes
C looks fine to me!
C is correct answer no need to spllly mention resource here
Answer C; that would be the equivalent to kubectl create ns :)