Create an IAM service role for a Hybrid Environment

0 votes
How do I create an IAM service role for a hybrid environment?
Jan 10 in AWS by Ayaan
31 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 10 by Nikita

Related Questions In AWS

0 votes
1 answer
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
146 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer