Using Console
Using CLI
<ARN-of-secret>
with the ARN of the secret that needs to be encrypted with a CMK, and <ARN-of-new-CMK>
with the ARN of the newly created CMK.
Using Python
CMK_ARN
with the ARN of the CMK created in step 1 and SECRET_NAME
with the name of the Secret in AWS Secret Manager that needs to be updated.By following these steps, you can remediate the misconfiguration “Secret Manager Secrets Should Be Encrypted With CMKs” for AWS using Python.