'What is the recommended approach to encrypt existing parameters?

I have few hundreds, if not thousands, entries in the parameter store on one of my AWS accounts. At the moment they are just plain strings. I would like to encrypt them using the default KMS key but so far the only way I found to do this involves deleting the existing parameter. I also need to encrypt all the versions of existing parameters.

Is there a way to do this without deleting parameters?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source