डेवलपर्स के लिए AWS Security का उपयोग
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"
}
}
}

प्रश्न
उत्तर


आइडेंटिटी-आधारित


आइडेंटिटी-आधारित
रिसोर्स-आधारित
{"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, कितना भी व्यापक allow हो, उस पर भारी पड़ता है


{"Effect": "Allow", "Action": "s3:*",
"Resource": "*"}
{"Effect": "Deny", "Action": "s3:DeleteObject",
"Resource": "*"}
s3:GetObject → allow: व्यापक allow इसे कवर करता हैs3:DeleteObject → explicit deny: एक स्टेटमेंट ने मना कियाkms:Decrypt, dynamodb:GetItem → implicit deny: इस पॉलिसी में ये सर्विसेज़ कही ही नहीं गईंएक ही एरर, दो कारण
Explicit deny
Implicit deny

डेवलपर्स के लिए AWS Security का उपयोग