Create an IAM service role for a Hybrid Environment

0 votes
How do I create an IAM service role for a hybrid environment?
Jan 11, 2019 in AWS by Ayaan
740 views

1 answer to this question.

0 votes

To create an IAM service role for Windows PowerShell, follow the steps:

  • Create a text file with the following trust policy. Save the file with the .json file extension.
{ 
"Version": "2012-10-17", 
"Statement": { 
"Effect": "Allow", 
"Principal": {
"Service": "ssm.amazonaws.com"}, 
"Action": "sts:AssumeRole" } 
}
  • Use new IAM role to create a service
New-IAMRole -RoleName SSMServiceRole -AssumeRolePolicyDocument (Get-Content -raw SSMService-Trust.json)
  • Use register-IAMRolePolicy to create a session token
Register-IAMRolePolicy -RoleName SSMServiceRole -PolicyArn arn:aws:iam::aws:policy/service-role/AmazonEC2RoleforSSM

And you're done:)

answered Jan 11, 2019 by Nikita

Related Questions In AWS

0 votes
1 answer

How to create a password for an IAM user?

Hi@akhtar, You can create a password for the specified ...READ MORE

answered Nov 3, 2020 in AWS by MD
• 95,460 points
808 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,036 views
+2 votes
1 answer
0 votes
1 answer

How do I know if I qualify for a SLA Service Credit?

You are eligible for an SLA credit ...READ MORE

answered Jul 31, 2019 in AWS by Kavya
616 views
0 votes
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