2 Respuestas
- Más nuevo
- Más votos
- Más comentarios
3
This should do it
resource "aws_iam_role" "role_identifier" {
name = var.role_name
assume_role_policy = jsonencode({
Version = "2012-10-17"
Statement = [
{
Action = "sts:AssumeRole"
Effect = "Allow"
Sid = ""
Principal = {
Service = "ec2.amazonaws.com"
}
},
]
})
}
0
Hi,
Your policy contains two statements. The first part has Principal but the second part only has the following:
{ Action = "AssumeRole", Effect = "Allow" }
This second part needs to be cleaned up as it looks like it is not required.
respondido hace 7 meses
Contenido relevante
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace un año