3개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
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
답변함 3년 전
0
I have also same problem and my role trust policy is same as above shows in answer.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "ec2.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
then why roles not shown to me in the drop down list.
답변함 2년 전
-1
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"
}
]
}
관련 콘텐츠
질문됨 일 년 전

I got the exact same problem. created an IAM Role for codedeploy but not visible in dropdown