Policies - Exemple S3 Buckets
Références
S3 Policy Condition Keys (Pour les conditions)
Global Condition Keys (Pour les conditions)
Transport Encrypté
https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingServerSideEncryption.html
JSON |
---|
| {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowSSLRequestsOnly",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::BUCKET_ID",
"arn:aws:s3:::BUCKET_ID/*"
],
"Condition": {
"Bool": {
"aws:SecureTransport": "false"
}
}
},
{
"Sid": "DenyUnEncryptedObjectUploads",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::BUCKET_ID/*",
"Condition": {
"Null": {
"s3:x-amz-server-side-encryption": "true"
}
}
}
]
}
|
Encryption avec KMS
Limiter retention sur un Object Lock Bucket
Référence