标签:style div ges The setting png load source image
The permissions granted by the policy apply to all of the objects within the bucket.
You cannot attach a bucket policy to an individual object.
A group of files which need to be accessed by the same people
Principal: "*": Anyone can access.
Select the encryption setting in your S3 bucket. The easiest way, just a check box in the console
You can also enforce encryption using a bucket policy. This mothod does sometimes come up in exam.
{ "Id": "Policy1619722202508", "Version": "2012-10-17", "Statement": [ { "Sid": "Stmt1619722201204", "Action": [ "s3:PutObject" ], "Effect": "Deny", "Resource": "arn:aws:s3:::jtrterweqwerthyuyetwrwrt/*", "Condition": { "StringNotEquals": { "s3:x-amz-server-side-encryption": "aws:kms" } }, "Principal": "*" } ] }
What it does, Deny request if PUT request header doesn‘t have
x-amz-server-side-encryption: aws:kms
Upload file:
Type have to be aws:kms because we have defined in JSON.
How to change default TTL: Using Invalidations to remove cache, you will be charged for this.
标签:style div ges The setting png load source image
原文地址:https://www.cnblogs.com/Answer1215/p/14716445.html