SlideShare a Scribd company logo
AWS - Cross Account Access
1. We need to AWS Account. Example : Account-A and Account-B. Write down
the AccountID : ACCOUNT-A-ID and Account-B-ID
2. Create an IAM Role in AccountA with name “Role_for_B” for giving access for
user in Account-B. Write down the ARN for the role.
3. Attach permission, for example : EC2ReadPermissions to this role
4. In Account-B create an IAM user or use existing IAM User
5. Add the inline policy and attach Assume Role policy as below :
{
"Version": "2012-10-17”,
"Statement”: {
"Effect": "Allow”,
"Action": "sts:AssumeRole”,
"Resource": "arn:aws:iam::ACCOUNT-A-ID:role/Role_for_B”
}
}
6. Login to console of Account-B and Switch Role. Enter the ACCOUNT-A-ID and
select the Role we want to assume.
7. Validate that we can see EC2 instance in Account-A

More Related Content

PDF
Cloud-powered Mobile Apps
PDF
Application Server-less Web Applications - Serverless Toronto Meetup
PDF
Exception mapping using api kit
PPT
2010 08-26-smart-architecture
PPTX
Can mule integrate with ring central part2
PDF
Designing REST API
PDF
Hotel api integration
PDF
Ng-init
Cloud-powered Mobile Apps
Application Server-less Web Applications - Serverless Toronto Meetup
Exception mapping using api kit
2010 08-26-smart-architecture
Can mule integrate with ring central part2
Designing REST API
Hotel api integration
Ng-init

What's hot (7)

PDF
Ng-init
PPTX
PPTX
Api server final
PPT
Bulk sms gateway integration in java
PDF
Wso2 Api Manager
PPTX
2013 02-apache conna-api-manager-asanka
PDF
[@NaukriEngineering] Inbound Emails for Every Web App: Angle
Ng-init
Api server final
Bulk sms gateway integration in java
Wso2 Api Manager
2013 02-apache conna-api-manager-asanka
[@NaukriEngineering] Inbound Emails for Every Web App: Angle
Ad

More from Albert Suwandhi (13)

PDF
Introduction to AWS (Amazon Web Services)
PDF
Infrastructure as Code
PDF
Intro - Cloud Native
PDF
IoT Intro and Demo
PDF
Introduction to AWS (Amazon Web Services)
PDF
Intro to Network Automation
PDF
AWS UG Indonesia Meetup - AWS IoT Core
PDF
Lab - AWS Lambda Resize Image
PDF
Lab - AWS Lambda Rekognition
PDF
Lab - Automatic Deployment Using AWS CodePipeline to EC2
PDF
Cloud Study Jam - 2019
PDF
Road to RIoT 2017 Medan
PDF
Docker Mentor Week 2016 - Medan
Introduction to AWS (Amazon Web Services)
Infrastructure as Code
Intro - Cloud Native
IoT Intro and Demo
Introduction to AWS (Amazon Web Services)
Intro to Network Automation
AWS UG Indonesia Meetup - AWS IoT Core
Lab - AWS Lambda Resize Image
Lab - AWS Lambda Rekognition
Lab - Automatic Deployment Using AWS CodePipeline to EC2
Cloud Study Jam - 2019
Road to RIoT 2017 Medan
Docker Mentor Week 2016 - Medan
Ad

Recently uploaded (20)

PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Big Data Technologies - Introduction.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
A Presentation on Artificial Intelligence
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Machine Learning_overview_presentation.pptx
PPTX
Cloud computing and distributed systems.
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
MIND Revenue Release Quarter 2 2025 Press Release
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
20250228 LYD VKU AI Blended-Learning.pptx
Programs and apps: productivity, graphics, security and other tools
The AUB Centre for AI in Media Proposal.docx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Big Data Technologies - Introduction.pptx
Unlocking AI with Model Context Protocol (MCP)
A Presentation on Artificial Intelligence
The Rise and Fall of 3GPP – Time for a Sabbatical?
Empathic Computing: Creating Shared Understanding
Machine Learning_overview_presentation.pptx
Cloud computing and distributed systems.
Per capita expenditure prediction using model stacking based on satellite ima...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
MIND Revenue Release Quarter 2 2025 Press Release

Lab - AWS Cross Account Access

  • 1. AWS - Cross Account Access 1. We need to AWS Account. Example : Account-A and Account-B. Write down the AccountID : ACCOUNT-A-ID and Account-B-ID 2. Create an IAM Role in AccountA with name “Role_for_B” for giving access for user in Account-B. Write down the ARN for the role. 3. Attach permission, for example : EC2ReadPermissions to this role 4. In Account-B create an IAM user or use existing IAM User 5. Add the inline policy and attach Assume Role policy as below : { "Version": "2012-10-17”, "Statement”: { "Effect": "Allow”, "Action": "sts:AssumeRole”, "Resource": "arn:aws:iam::ACCOUNT-A-ID:role/Role_for_B” } } 6. Login to console of Account-B and Switch Role. Enter the ACCOUNT-A-ID and select the Role we want to assume. 7. Validate that we can see EC2 instance in Account-A