1. 程式人生 > >Resolve "The new key policy will not allow you to update the key policy in the future" Errors

Resolve "The new key policy will not allow you to update the key policy in the future" Errors

    "myKey" : {
      "Type" : "AWS::KMS::Key",
      "Properties" : {
          "Description" : "A sample key",
          "KeyPolicy" : {
              "Version": "2012-10-17",
              "Id": "key-default-1",
              "Statement": [
                  {
                      "Sid": "Allow administration of the key",
                      "Effect": "Allow",
                      "Principal": { "AWS": "arn:aws:iam::123456789012:user/Alice" },
                      "Action": [
                          "kms:Create*",
                          "kms:Describe*",
                          "kms:Enable*",
                          "kms:List*",
                          "kms:Put*",
                          "kms:Update*",
                          "kms:Revoke*",
                          "kms:Disable*",
                          "kms:Get*",
                          "kms:Delete*",
                          "kms:ScheduleKeyDeletion",
                          "kms:CancelKeyDeletion"
                      ],
                      "Resource": "*"
                  },
                  {
                      "Sid": "Allow use of the key",
                      "Effect": "Allow",
                      "Principal": { "AWS": "arn:aws:iam::123456789012:user/Bob" },
                      "Action": [
                          "kms:Encrypt",
                          "kms:Decrypt",
                          "kms:ReEncrypt",
                          "kms:GenerateDataKey*",
                          "kms:DescribeKey"
                      ], 
                      "Resource": "*"
                  }
              ]
          }
      }
  }

相關推薦

Resolve "The new key policy will not allow you to update the key policy in the future" Errors

"myKey" : { "Type" : "AWS::KMS::Key", "Properties" : { "Description" : "A sample key", "KeyPolicy" : {

The server cannot or will not process the request due to something that is perceived to be a client

HTTP Status 400 – Bad Request Type Status Report Description The server cannot or will not process the request due to something that i

MAVEN奇葩問題was cached in the local repository, resolution will not be reattempted until

[ERROR] Non-resolvable import POM: Failure to find org.springframework.cloud:spring-cloud-dependencies:pom:Finchley.M7 in https://maven.aliyun.com/reposito

Maven錯誤:was cached in the local repository, resolution will not be reattempted until the update

問題 在Idea中使用maven將springboot專案打成jar包(使用idea- maven projects->具體專案->package命令 ),報錯如下: 在網上找到解決辦法如下:特此記錄. 解決辦法 1.刪除~/.m2/repository

What the new Mastercard logo will look like in China

What the new Mastercard logo will look like in ChinaImage from ‘Brand New’ blogIn Brand New blog, the new Mastercard is described as:the logo is easily ide

Debunking The Myth: No, AI Will Not Take Your Jobs

"By 2022, half of the human workforce will be wiped out." "Robotics and machinery will take over." "Automation will take up your jobs." These are some of t

PlayStation 5: Sony confirms it's working on a new console, but will not name it

Sony has confirmed it is working on the PlayStation 5 – but not that it is called that. The new console comes amid questions about whether consoles really

Maven經典錯誤之三:was cached in the local repository, resolution will not be reattempted until the upda

常見錯誤: Multiple annotations found at this line:- No plugin found for prefix 'war' in the current proj

Your configuration does not allow connection to http://

使用composer 安裝或者更新擴充套件的時候可能會報錯:                                  &

Will vs Be Going To vs Present Continuous: Talk About the Future in English

https://www.youtube.com/watch?v=UISiuiPd_FY will 說話的當下決定的將來要做什麼,in the moment be going to 有意圖去做,但沒有計劃 present continuous 現在進行時是有明確的計劃。   This Eng

The Salem Witch Trials Were Not What You Think

We all know the story: zealots belonging to an *ahem* Puritanical sect who had established an insular and quasi-theocratic society in New England fall into

Android Developers Blog: Staged releases allow you to bring new features to your users quickly, safely and regularly.

Posted by Peter Armitage, Software Engineer, Google Play Releasing a new version of your app is an exciting moment when your team's hard work finally

Your configuration does not allow connection to http://packagist.org

composer update/install 出現如下錯誤: [Composer\Downloader\TransportException]

Script to Monitor Current User Activity in the Database

border his right anti for order loaded stat format Execution Environment: SQL, SQL*Plus, iSQL*Plus Access Privileges: Requ

cdde::block Debug ERROR: You need to specify a debugger program in the debuggers's settings.

有的小夥伴有可能在使用code::blocks程式設計的時候,在除錯是出現下面的問題 這種情況是因為沒有指定除錯程式,或者是指定的是錯誤的,或者就沒有下載除錯程式,沒有下載的,下載一個mingw下載gdb程式就行。 在確定安裝了gdb後,在code::blocks的偵錯程式選項,選擇

Ask HN: How to take advantage of living in the Bay?

Before moving to the Bay, I had hoped that the Bay to America would be like America to the rest of the world.I grew up in a developing country with an auth

Why you shouldn’t buy a home in the Bay Area right now

Why you shouldn’t buy a home in the Bay Area right nowThis is a follow-up to my post on calculating the buy/rent trade-off of housing, which produced a mod

If You Charge People to Tweet, They’ll Revolt in the Street

This story is for Medium members.Continue with FacebookContinue with GoogleMedium curates expert stories from leading publishers exclusively for members (w

Ask HN: What Do You Do When Your Phone Is in the Shop for Repair?

I pull out an old phone from my drawer, swap the SIMs and live in the past for a couple of days. With most of my old smartphones I need

How to code like a Hacker in the terminal

How to code like a Hacker in the terminalYou are a hacker. Your home is the terminal. You know every key stroke is valuable. If something is less than 100%