The Key Management secrets engine supports lifecycle management of keys in AWS KMS regions. This is accomplished by configuring a KMS provider resource with the awskms provider and other provider-specific parameter values.

The following sections describe how to properly configure the secrets engine to enable the functionality.


The Key Management secrets engine must be configured with credentials that have sufficient permissions to manage keys in an AWS KMS region. The authentication parameters are described in the credentials section of the API documentation. The authentication parameters will be set with the following order of precedence:

  1. KMS provider credentials
  2. Environment variables
  3. Shared credentials file
  4. IAM role for AWS EC2 or ECS task

The IAM principal associated with the provided credentials must have the following minimum AWS KMS permissions:


The following is an example of how to configure the KMS provider resource using the Vault CLI:

$ vault write keymgmt/kms/example-kms \
    provider="awskms" \
    key_collection="us-west-1" \
    credentials=access_key="ASIADJO3WTX6WPLJM42V" \

Refer to the AWS KMS API documentation for a detailed description of individual configuration parameters.

»Key Transfer Specification

Keys are securely transferred from the secrets engine to AWS KMS regions in accordance with the AWS KMS Bring Your Own Key specification.