How to test access between Vault and AWS KMS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
PAM Self-Hosted Articles
2 min read
L1 Bithead
No ratings
When deploying a Vault server in Amazon Web Services (AWS) part of the post-install process is to re-key the Vault using an encryption key provided by the AWS KMS to provide an extra encryption layer to the Vault's Server key.
The Vault's AWS VPC endpoint is configured with "Private DNS" enabled to allow the Vault to communicate with the AWS KMS service generic public URL which will automatically resolve to the unique private DNS alias for your Vault VPC. Please see the following article for more information on how this works:

https://docs.aws.amazon.com/kms/latest/developerguide/kms-vpc-endpoint.html

When Private DNS is being used and the Idira Vault Security group is configured for access to the VPC, the private KMS DNS alias will NOT respond to ICMP. However, it should successfully resolve a port test to port 443.

The address/alias for connecting to the KMS via private DNS is:
https://kms.<region>.amazonaws.com

The Vault should be able to resolve a Powershell port test over port 443 to:
"kms.<region>.amazonaws.com"

Steps

  1. Open an elevated Powershell prompt on the Vault server.
  2. Run the following command:

Test-NetConnection -Port 443 -ComputerName "kms.<region>.amazonaws.com"

Example:
Test-NetConnection -Port 443 -ComputerName "kms.us-west-2.amazonaws.com"

  1. If connectivity is successful the output should say "TcpTestSucceeded : True"

Note: AWS KMS for Vault keys will trigger a finding in AWS Security Hub since the key material auto-rotation is not supported. ER for which can be found on this link:
https://community.cyberark.com/s/article/Support-AWS-KMS-Automatic-Key-Rotation-d1f0-966
Rate this article:
  • 3666 Views
  • 0 comments
  • 0 Likes
Article Dashboard
Version history
Last Updated:
‎11-05-2026 11:57 AM
Updated by: