2 Answers
- Newest
- Most votes
- Most comments
0
Afraid there is no pictures attached.. Usually if a role doesnt appear, its because of the trust policy doesnt support the resource you are trying to assign the role too.
Update the role trust policy for the resource i.e. ec2 :-
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "ec2.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
0
From iam dashboard I created a role for code deploy the trust policy is attached in the picture . When I am trying to modify iam role for the ec2 instance the created role is not available there
answered 9 months ago
Relevant content
- Accepted Answerasked 10 months ago
- Accepted Answerasked 4 years ago
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
I got the exact same problem. created an IAM Role for codedeploy but not visible in dropdown