hayderimran7 / cross-account-aws-iam-roles

Setting up cross-account AWS IAM roles via terraform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting up cross-account AWS IAM roles via terraform

For use of this terraform repo you need two profiles set up in your ~/.aws/credentials file, "utils" and "prod" pointing to two different AWS account.

  1. Run terraform init
  2. Run terraform plan -out tfplan
  3. Run terraform apply tfplan

When you've done that, you can assume the role either via the GUI or CLI. aws sts assume-role --role-arn "<role_arn>" --role-session-name "<name>"

About

Setting up cross-account AWS IAM roles via terraform


Languages

Language:HCL 100.0%