개발자를 위한 AWS 보안 활용
Rahul Singh
Technical Product Manager
{
"Effect": "Allow",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::reports/*",
"Condition": {
"Bool": {
"aws:SecureTransport": "true"
},
"IpAddress": {
"aws:SourceIp": "203.0.113.0/24"
}
}
}

{
"Effect": "Allow",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::reports/*",
"Condition": {
"Bool": {
"aws:SecureTransport": "true"
},
"IpAddress": {
"aws:SourceIp": "203.0.113.0/24"
}
}
}

질문
답


ID 기반(Identity-based)


ID 기반(Identity-based)
리소스 기반(Resource-based)
{"Effect": "Allow", "Action": "s3:*", "Resource": "*"}
{"Effect": "Deny", "Action": "s3:DeleteObject", "Resource": "*"}
{"Effect": "Allow", "Action": "s3:*", "Resource": "*"}
{"Effect": "Deny", "Action": "s3:DeleteObject", "Resource": "*"}
요청: s3:DeleteObject 실행 결과: 거부됨(Denied).
명시적 거부(Explicit Deny)는 아무리 광범위한 허용보다도 우선합니다


{"Effect": "Allow", "Action": "s3:*",
"Resource": "*"}
{"Effect": "Deny", "Action": "s3:DeleteObject",
"Resource": "*"}
s3:GetObject → 허용: 광범위한 허용 규칙이 이를 포함합니다s3:DeleteObject → 명시적 거부: 한 문이 안 된다고 명시합니다kms:Decrypt, dynamodb:GetItem → 암시적 거부: 이 정책은 해당 서비스를 전혀 언급하지 않습니다같은 오류, 두 가지 원인
명시적 거부
암시적 거부

개발자를 위한 AWS 보안 활용