2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
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.
답변함 7달 전
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 8달 전
- AWS 공식업데이트됨 일 년 전