Is it possible to turn the access_logs block on and off via the environment_name variable?

前端 未结 5 513
一个人的身影
一个人的身影 2020-12-29 19:43

I\'m looking at using the new conditionals in Terraform v0.11 to basically turn a config block on or off depending on the evnironment.

Here\'s the b

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-29 20:21

    Conditionals in terraform are currently only to be used to determine a value, not to be used as an if statement wrapping a block.

    And you can also use conditionals to determine a value based on some logic.

    https://www.terraform.io/docs/configuration/interpolation.html#conditionals

提交回复
热议问题