Storing sensitive data with the Systems Manager Parameter Store
We can store data using the Systems Manager Parameter Store with and without encryption, and then reference it from various services without having to hardcode the data in any place. In this recipe, we will learn how to store data with encryption in an AWS Systems Manager Parameter Store and then retrieve it from an EC2 instance.
Getting ready
We need the following to successfully complete the recipe:
- A working AWS account and a user as described in the Technical requirements section.
- An EC2 instance in the default VPC, within a public subnet within the VPC. For Amazon Machine Image (AMI), select Amazon Linux 2023 AMI. For Instance type, select
t2.micro, For Key pair (login), select an existing one you have access to or create a new one. Under Network settings, make sure the value for Auto-assign public IP is Enable and Create security group is selected with the value for Allow SSH traffic from set as...