Configuring AWS Named Profiles
dev.to·2d·
Discuss: DEV
📋Infrastructure as Code (IaC)
Preview
Report Post

Following up with our series of engineering an IaC Startup on AWS, there’s this one addendum I must talk about.

When working with multiple AWS accounts you need a way to tell the AWS CLI and Terraform which account to use for each operation. This is where named profiles come in.

A named profile is a collection of credentials and configuration settings that represents a specific identity in a specific AWS account. Instead of constantly switching credentials or passing them as command-line arguments, you define profiles once in your local AWS configuration files and reference them by name.

For example, you might have:

  • management-admin - Administrator access to your management account
  • backend-dev-admin - Administrator access to your development account
  • `backend-prod-dev…

Similar Posts

Loading similar posts...