Iam role created but it is not showing in the drop down menu of Modify IAM role[REQUIRED BY CODE DEPLOY]

1

i want to allow code deploy to use ec2 instance for that i have created a role from iam as shown in the picture below . the problem is that this is shown in IAM dashboard but when i want modify iam role for ec2 istance this role is not showing in drop down .the picture showing this is also attached below . Please help me in troubleshooting this problem i have searched on the web but i am not able to get rid of this problem. i am trying to learn aws cicd i am trying from last two days but i am not able to acheive the desired result.

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

preguntada hace 9 meses272 visualizaciones
2 Respuestas
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"
        }
    ]
}
profile picture
EXPERTO
respondido hace 9 meses
0

image of trust policy 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

respondido hace 9 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas