How to Setup Multi-AWS Accounts & Assume Role with AWS CLI

How to Setup Multi-AWS Accounts & Assume Role with AWS CLI

Learn how to setup Multi-AWS accounts & assume role with AWS CLI. In this article, I will explain what needs to be done to implement multi aws accounts with AWS CLI step by step. I am planning to create story series for AWS Multi-Account deployment.

In this article, I will explain what needs to be done to implement multi aws accounts with AWS CLI step by step. I am planning to create story series for AWS Multi-Account deployment.

AWS Accounts

We will create the following child accounts under an AWS Organization.

security
mgmt
dev
stage
prod

Architecture

  • Create all IAM users in security account
  • Create dev, admin roles in dev,stage, prod and mgmt accounts. Grant access to these roles from a security account.
  • Create policies(i.e. one policy with limited dev permissions, another policy with full admin permissions on target accounts) in security account to allow assuming role on target accounts like dev role to access all other accounts(dev,stage,prod,mgmt)
  • Deploy infrastructure into a number of other accounts(dev,stage,mgmt prod)
  • Deploy CI/CD in mgmt account(Jenkins, ArgoCD, Flux etc)

security aws aws-cli multi-aws

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

9 AWS Security Best Practices: Securing Your AWS Cloud

In this blog post, I have. 9 AWS Security Best Practices: Securing Your AWS Cloud - Working with Amazon facilities, it is necessary to implement AWS security best practices to ensure the safety of the data and the cloud. How a secure is my virtual data? Make Your Security Policy Comprehensive.

50+ Useful Kubernetes Tools for 2020 - Part 2

Our original Kubernetes tool list was so popular that we've curated another great list of tools to help you improve your functionality with the platform.

How to Use AWS IAM Role on AWS EKS PODs

Using a native-AWS way to use an AWS IAM Role in an EKS POD, without using third-party software. Reducing the latency, and improving your EKS security. Build, Deploy, and Manage Websites, Apps or Processes On AWS' Secure, Reliable Network. Sign Up for a Free Account & Experience AWS' Secure, Reliable, Scalable...

AWS Cost Allocation Tags and Cost Reduction

Learn more about AWS Cost Allocation Tags, tag examples via the web, CLI, and node.js, explore tag compliance services, and review tagging strategies.

Multi-cloud Spending: 8 Tips To Lower Cost

Mismanagement of multi-cloud expense costs an arm and leg to business and its management has become a major pain point. Here we break down some crucial tips to take some of the management challenges off your plate and help you optimize your cloud spend.