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
8Â months, 2Â weeks agoSimplon
8Â months, 2Â weeks agohalfway
1Â year, 1Â month agosdm13168
1Â year, 1Â month agoJhaggar
1Â year, 1Â month agoNi33
1Â year, 1Â month agoNi33
1Â year, 1Â month agoOleg_gol
1Â year, 1Â month agoszyd3rca
1Â year, 1Â month ago