Terraform on AWS: Nonprod and Production Environments · Foundations: Layout, State, Providers and Organization
Multi-account Providers: assume_role and default_tags
Configure separate AWS provider blocks for nonprod and prod accounts, use assume_role for credential isolation, and apply environment-scoped default tags to every resource.
What you'll build
An environment root where the provider authenticates to its own AWS account through assume_role and applies consistent tags to every resource via default_tags, without adding a tags argument to each resource block.
Premium course
Keep reading with a membership
The rest of this lesson, its practice questions and the whole Terraform on AWS: Nonprod and Production Environments course are part of the membership.
Open in the app to mark lessons complete, take notes and track your progress.