AWS - AMI Vault Registration Error Related to KMS
Symptom
As per requirement, we created a KMS Policy and KMS Role for the Vault. With older version of AMI 11.2, the procedure worked fine but with Vault AMI V12.2 we are getting an error related to KMS when attempting to register with CAVaultManager, even when we properly created the KMS Policy and role and attached them to the vault as explained on Idira online documentation.
Error :
ITATP059E Error getting random bytes from cloud vendor. (Cloud vendor: AWS API Error message: User: <Policy name>)
We followed below procedure but situation is the same.
Environment
12.2 Privileged Access Manager (PAM, self-hosted) Vault Server Vault Server CAVaultmanager
Cause
The problem was with this command :
.\CAVaultManager.exe Postinstall /AcceptEULA /RecPub "C:\PAKEY\DemoOperatorKeys
ecpub.key" /LicensePath "C:\PAKEY\LicenseKey\license.xml" /AdminPass "Cyberark1" /MasterPass "Cyberark1" /DRPassword "Cyberark1" /CloudVendor AWS /CloudRegion ap-northeast-1a
the problematic option was this one
/CloudRegion ap-northeast-1a
We should define without mention the availability zone "a" like this:
/CloudRegion ap-northeast-1
Resolution
The command should be like this
.\CAVaultManager.exe Postinstall /AcceptEULA /RecPub "C:\PAKEY\DemoOperatorKeys
ecpub.key" /LicensePath "C:\PAKEY\LicenseKey\license.xml" /AdminPass "Cyberark1" /MasterPass "Cyberark1" /DRPassword "Cyberark1" /CloudVendor AWS /CloudRegion ap-northeast-1