How do I enable the access to AWS STS AssumeRole

0 votes
What steps do I need to follow to enable someone to access AWS STS AssumeRole? I’m not sure how to do it.
Oct 23 in AWS by Priyanka
• 4,080 points
68 views

1 answer to this question.

0 votes

To enable access to AWS STS AssumeRole, just follow the below steps :

  • First, you must create an IAM role, or you can update or modify an existing role.

  • To create a role, go to IAM --> roles --> and click on create role in the top right corner.

  • Mention the role name, and then choose a trust entity according to your project or purpose. Right now, I am choosing an AWS account.

  • Select permission policy as AWSs3fullaccess.

  • Then, add a role name according to your need, a meaningful name to identify this role, and a description if you want to better understand it.

  • Check whether the trust policy is correct or not, and then create the role.

  • Once this is done, you can test the AssumeRole Action using AWS CLI by running the command below.

aws sts assume-role --role-arn arn:aws:iam::ACCOUNT-ID:role/RoleName --role-session-name session1

If you have an existing role, follow these steps :

  • Go to IAM --> click on the role name

  • Below the summary, you can see the trust entities tab, which has the edit trust policy option. Click on it, modify it according to your project, and then hit update trust policy.

  • After this, run the command in AWS CLI to verify and access it.

aws sts assume-role --role-arn arn:aws:iam::ACCOUNT-ID:role/RoleName --role-session-name session1

answered Nov 7 by Kavya

Related Questions In AWS

0 votes
2 answers

How do I define the principal for an AWS policy statement?

Check with AWS Policy Documentations once, rest ...READ MORE

answered Jun 26, 2018 in AWS by Cloud gunner
• 4,670 points

edited Jun 26, 2018 by Cloud gunner 1,157 views
0 votes
1 answer

How do I enable SSH for my AWS-EB instance?

Using the EB CLI to do eb ...READ MORE

answered Oct 9, 2018 in AWS by Archana
• 4,170 points
3,048 views
0 votes
2 answers

How do I add python libraries to an AWS lambda function for Alexa?

If you get lucky (it depends what ...READ MORE

answered Nov 3, 2020 in AWS by anonymous
15,539 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,035 views
+2 votes
1 answer
+1 vote
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP