Terraform Flashcards
1
Q
How to check if a variable has a certain value?
A
count = contains([“na”,”qa”], terraform.workspace) ? 1 : 0
2
Q
define the backend
A
terraform { required_version = "0.12.30" backend "s3" { } }
provider “aws” {
region=”us-east-1”
}