The following section elaborates the process to configure KMS from AWS Portal.
The first step is to create a key (Customer managed key) on https://console.aws.amazon.com/kms/ under the Key Management service (KMS) service.
Go to https://console.aws.amazon.com/and search for KMS service.
Under the Key management service (KMS) create customer managed key (CMK) from top right option create key.
Create Symmetric key by select symmetric key type and select KMS in advanced options as in below image.
Give alias of a key which is required and rest are the optional.
Select key Administrator: Choose the IAM users and roles who can administer this key through the KMS API.
Select the IAM users and roles that can use the CMK in cryptographic operations.
Review the key configurations and press finish button to create a key.
Once key is successfully created, it will show in list of keys.
Click on key and go to details page of key and look for key ARN. This key ARN is required for further configuration.
Configure AWS KMS for HDFSAgent and LocalFilesAgent
The second step is to Setup AWS credentials for KMS and Secret Manager. There are 3 options available to you. Choose any option from the choices below:
If we have EC2 instance then we can setup the AWS CLI.
If we have EC2 instance then we can assign role to EC2 instance.
On the machine which has the agent, create a property file called AWS credentials.properties. Inside the file update following properties:
aws_access_key_id = aws_secret_access_key =
The third step is to restart the agent using stop.sh and start.sh scripts in Agent installation dir.
Configure KMS from Admin and PK Protect
The fourth step is to configure KMS from Admin and PK Protect portal. On Admin portal, Under the Manage Keystores option from left menu. Add new key store with required details.
You will get KEY-ARN from AWS KMS console that you have created in above step 1-> i.
Once keystore are successfully created, it will show in the list of key stores.
While adding a domain on PK Protect, will get the AWS-KMS store (which you have created in the step 2) in the list of key store option. Enter the required information and save your domain.