CmdID

CmdID / aws / aws kms

aws kms create-alias

Creates a friendly name for a KMS key. AWS CLI reference

1 example 2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To create an alias for a KMS key

The following create-alias example creates an alias named example-alias for the KMS key identified by key ID a1b2c3d4-5678-90ab-cdef-EXAMPLE11111.

Alias names must begin with alias/. Do not use alias names that begin with alias/aws; these are reserved for use by AWS.

aws kms create-alias --alias-name alias/example-alias --target-key-id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111Identify
--alias-nameSpecifies the alias name.
--target-key-idAssociates the alias with the specified customer managed key.

This command produces no output. To see the new alias, use the list-aliases command.

For more information, see Using aliases in the AWS Key Management Service Developer Guide.

Options

2 in the AWS CLI reference
--alias-nameSpecifies the alias name.
--target-key-idAssociates the alias with the specified customer managed key.