One of the really parts of using Terraform to provision resources on AWS is that you can use multiple accounts or profiles from the same stack. When doing this, you need to have multiple providers and need to tell them apart. This is where "aliases" help.

The interface to each domain uses a "provider" instance. For example there is an AWS provider, a Kubernetes provider, OKTA provider, etc. You can assign an "alias" to each instance to refer to it in the rest of the files.

Niraj shows examples of using aliases with Terraform.