Terraform Flashcards

1
Q

How to check if a variable has a certain value?

A

count = contains([“na”,”qa”], terraform.workspace) ? 1 : 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

define the backend

A
terraform {
required_version = "0.12.30"
backend "s3" {
}
}

provider “aws” {
region=”us-east-1”
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly