Skip to content

Utilize TF `locals` feature in order to implement instance switch option

Compare
Choose a tag to compare
@const-bon const-bon released this 12 Oct 14:45
· 114 commits to main since this release

What

  • Utilize TF locals feature in order to implement instance switch option

Why

  • We shouldn't use boolean value with count attribute. TF interpolates "true"/"false" strings as booleans, but can't interpolate string -> boolean -> int
  • When we use terraform-aws-ec2-instance in order to create replicas, we might be interested in switch for those replicas, or replica groups