DEV Community

Olawale Adepoju for AWS Community Builders

Posted on

4

AWS cross account access (switch role)

In this tutorial we will switch role delegated to access a resources in different AWS accounts. You share resources in one account with users in a different account. By setting up cross-account access in this way, you don't have to create individual IAM users in each account.

  • Access AWS console
  • Open Identity and Access Management (IAM)
  • Click "Roles" on left side menu

Image description

  • Select the AWS account
  • Since it is a cross account access, give the the Account ID to which you want to grant access to your resources

Image description

  • Next is to give the permission policies, type the policy you want to attach in the search bar.

Image description

  • Add the Role name, and an option description. Then create the role

Image description

  • Finally role can be used in cross account by clicking on switch role in the console

Image description

  • Role can be switched by inputting the Account ID, Role name.

Image description

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Create a simple OTP system with AWS Serverless cover image

Create a simple OTP system with AWS Serverless

Implement a One Time Password (OTP) system with AWS Serverless services including Lambda, API Gateway, DynamoDB, Simple Email Service (SES), and Amplify Web Hosting using VueJS for the frontend.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay