You are creating a reusable Terraform configuration and want to include a billing_dept tag so your Finance team can track team-specific spending on resources. Which of the following billing_dept variable declarations will allow you to do this?
C is the correct option. All the arguments of variables are optional. A - optional is not a valid argument. B- optional(string) is not a valid argument value. D - default is not a valid argument value.
│ Error: Invalid type specification
│
│ on main.tf line 15, in variable "billing_dept":
│ 15: type = optional(string)
│
│ Keyword "optional" is valid only as a modifier for object type attributes.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Simplon
10Â months, 1Â week agoSimplon
10Â months, 1Â week agohalfway
1Â year, 2Â months agosdm13168
1Â year, 3Â months agoJhaggar
1Â year, 3Â months agoNi33
1Â year, 3Â months agoNi33
1Â year, 3Â months agoOleg_gol
1Â year, 3Â months agoszyd3rca
1Â year, 3Â months ago