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
Examples
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
--alias-nameSpecifies the alias name.--target-key-idAssociates the alias with the specified customer managed key.