This is to provide a foundation which interview candidates can build terraform projects on top of.
Without Role Assumption:
terraform init -backend-config=./init-tfvars/dev.tfvars
With MFA Role Assumption:
awsudo -u \<profile\> terraform init -backend-config=./init-tfvars/dev.tfvars
Without Role Assumption:
terraform apply -var-file ./apply-tfvars/dev.tfvars
With MFA Role Assumption:
awsudo -u \<profile\> terraform apply -var-file ./apply-tfvars/dev.tfvars
- awsudo
- tfenv (if using multiple versions of terraform)