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
6Â months, 3Â weeks agoSimplon
6Â months, 3Â weeks agohalfway
11Â months, 1Â week agosdm13168
11Â months, 3Â weeks agoJhaggar
11Â months, 3Â weeks agoNi33
11Â months, 3Â weeks agoNi33
11Â months, 3Â weeks agoOleg_gol
12Â months agoszyd3rca
11Â months, 3Â weeks ago