Interview Prep/Real-World Interview/Terraform and Ansible

What's a provider alias used for?

AdvancedConceptTerraform and Ansible
Answer

It configures several instances of the same provider, such as two regions or two accounts. For example, ACM certificates for CloudFront must be in us-east-1:

provider "aws" {
  alias  = "use1"
  region = "us-east-1"
}
All Real-World Interview questions Roadmap: Interview readiness

More on Terraform and Ansible