1. 程式人生 > >Configure S3 Bucket Policy to Store Only Objects Encrypted by KMS Key

Configure S3 Bucket Policy to Store Only Objects Encrypted by KMS Key

{
    "Version": "2012-10-17",
    "Id": "PutObjPolicy",
    "Statement": [
        {
            "Sid": "DenySSE-S3",
            "Effect": "Deny",
            "Principal": "*",
            "Action": "s3:PutObject",
            "Resource": "arn:aws:s3:::samplebucketname/*",
            "Condition": {
                "StringEquals": {
                    "s3:x-amz-server-side-encryption": "AES256"
                }
            }
        },
  {
            "Sid": "RequireKMSEncryption",
            "Effect": "Deny",
            "Principal": "*",
            "Action": "s3:PutObject",
            "Resource": "arn:aws:s3:::samplebucketname/*",
            "Condition": {
                "StringNotLikeIfExists": {
                    "s3:x-amz-server-side-encryption-aws-kms-key-id": "arn:aws:kms:us-east-1:111122223333:key/*"
                }
            }
        }
    ]
}

相關推薦

Configure S3 Bucket Policy to Store Only Objects Encrypted by KMS Key

{ "Version": "2012-10-17", "Id": "PutObjPolicy", "Statement": [ { "Sid": "DenySSE-S3", "Effect": "De

Use Wildcards With Explicit Deny With Principle Elements in an S3 Bucket Policy

{ "Version": "2012-10-17", "Statement": [ { "Sid": "", "Effect": "Allow", "Principal": "*",

Change the VPC or Endpoint ID in an Amazon S3 Bucket Policy

The VPC ID or VPC endpoint ID is not valid If the VPC ID or VPC endpoint ID in the bucket policy is not valid (for example, it's mis

Restrict Access to your Amazon Connect S3 Bucket

This blog post describes how to create customer access policies to Amazon S3. These buckets are by default not public, and this blog takes it furt

Vue的報錯:Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>'

pac rop space efault type require bject default logs 剛剛運行一下以前的一個Vue+webpack的demo,運行之後沒有出現想象中的效果,並且報錯 Uncaught TypeError: Cannot assign t

Cannot assign to read only property 'exports' of object '#<Object>'

tro 小項目 uncaught ann sig 分享 方式 技術 image 運行一下以前的一個Vue+webpack的 vue仿新聞網站 小項目,報錯 由於自己vue學習不深入,老是這個報錯,找了好久(確切的說是整整一下午^...^)才找到原因 -v- Uncaugh

kali 2016:mount ntfs 分區只讀 --Falling back to read-only mount because the NTFS partition is in an unsafe state.

start ack umount part fas mnt fast pan fsp mount ntfs 分區 mount /dev/sdb1 /mnt/d 提示: The disk contains an unclean file system (0, 0).Metad

git 報錯 error: insufficient permission for adding an object to repository database ./objects

overflow group mys per osi ng- 更新 tab edr 參照:http://stackoverflow.com/questions/1918524/error-pushing-to-github-insufficient-permission-f

Fiddler監聽Java應用程式http請求方法(Configure a Java Application to Use Fiddler)

Fiddler官網:http://docs.telerik.com/fiddler/Configure-Fiddler/Tasks/ConfigureJavaApp Configure a Java Application to Use Fiddler 要配置Java應用程式以向Fiddle

Vue報錯:Uncaught TypeError: Cannot assign to read only property’exports‘ of object’#[Object]‘的解決方法

發現問題 1,執行一下以前的一個Vue+webpack的 vue仿新聞網站  小專案,報錯 由於自己vue學習不深入,老是這個報錯,找了好久(確切的說是整整一下午^...^)才找到原因 -v- 2,點開錯誤的檔案,標註錯誤的地方是這樣的一段程式碼: 就是&n

Where to Store Android KeyStore File in CI/CD Cycle?

Where to Store Android KeyStore File in CI/CD Cycle? https://medium.com/@farukcankaya/where-to-store-android-keystore-file-in-ci-cd-cycle-2365f

[iOS] Swift: How to store user preferences?

You can use NSUserDefaults to save information and retrieve it next time when the app launches. For Save example: UserDefaults.standard.setValue(UserI

Ask HN: Do you use ElasticSearch to store logs? Or something else?

My name is Lucas Galton (I'm french, pardon my English), I work as a consultant. Some clients have asked me to deploy ElasticSearch clusters in order to st

learning system tackles speech and object recognition, all at once: Model learns to pick out objects within an image, using spok

Unlike current speech-recognition technologies, the model doesn't require manual transcriptions and annotations of the examples it's trained on. Instead,

vue執行報錯error:Cannot assign to read only property 'exports' of object '#<Object>'

用weex做專案的時候,npm start 之後一直報錯error:Cannot assign to read only property 'exports' of object '#<Object>' ,查了好多資料好像是export和import共用了導致不相容引起的 試了好多方法都不行,最