A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://docs.aws.amazon.com/kms/latest/developerguide/key-policy-modifying.html below:

Change a key policy - AWS Key Management Service

Change a key policy

You can change the key policy for a KMS key in your AWS account by using the AWS Management Console or the PutKeyPolicy operation. You cannot use these techniques to change the key policy of a KMS key in a different AWS account.

When changing a key policy, keep in mind the following rules:

How to change a key policy

You can change a key policy in three different ways as explained in the following sections.

Using the AWS Management Console default view

You can use the console to change a key policy with a graphical interface called the default view.

If the following steps don't match what you see in the console, it might mean that this key policy was not created by the console. Or it might mean that the key policy has been modified in a way that the console's default view does not support. In that case, follow the steps at Using the AWS Management Console policy view or Using the AWS KMS API.

  1. View the key policy for a customer managed key as described in Using the AWS KMS console. (You cannot change the key policies of AWS managed keys.)

  2. Decide what to change.

Using the AWS Management Console policy view

You can use the console to change a key policy document with the console's policy view.

  1. View the key policy for a customer managed key as described in Using the AWS KMS console. (You cannot change the key policies of AWS managed keys.)

  2. In the Key Policy section, choose Switch to policy view.

  3. Choose Edit.

  4. Decide what to change.

  5. Choose Save changes.

Using the AWS KMS API

You can use the PutKeyPolicy operation to change the key policy of a KMS key in your AWS account. You cannot use this API on a KMS key in a different AWS account.

  1. Use the GetKeyPolicy operation to get the existing key policy document, and then save the key policy document to a file. For sample code in multiple programming languages, see Use GetKeyPolicy with an AWS SDK or CLI.

  2. Open the key policy document in your preferred text editor, edit the key policy document, and then save the file.

  3. Use the PutKeyPolicy operation to apply the updated key policy document to the KMS key. For sample code in multiple programming languages, see Use PutKeyPolicy with an AWS SDK or CLI.

For an example of copying a key policy from one KMS key to another, see the GetKeyPolicy example in the AWS CLI Command Reference.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4