Use Parameter Store from AWS Lambda
In this lab, you’ll practice using Parameter Store to organize and control access to configuration information. When you’re finished with this lab, you’ll have a working example that illustrates the use of Parameter Store from AWS Lambda.
Terms and conditions apply.
Lab info
Lab author
Challenge
Review Existing Parameters
You will use the Systems Manager Parameter Store Dashboard to view existing parameters for this lab.
Challenge
Create a Parameter
You will create a Parameter Store parameter representing a production database password, which would be a typical aspect of an application configuration.
Challenge
Modify Parameter Value
You will modify an existing parameter value.
Challenge
Configure Lambda Tests
You will create two test scenarios for a Lambda function that will access Parameter Store parameters. One scenario will fail, the other will succeed. Note: The failure scenario will succeed pending a later challenge.
Challenge
Modify the Lambda Function to Access Parameter Store
You will modify the dev_lambda Lambda function to replace the hardcoded output with the specified parameter values. To do this, you will use the get_parameters_by_path function of the boto3 module.
Challenge
Modify Lambda Execution Role
You will modify the execution role for the Lambda to limit the dev_lambda function to Parameter Store parameters in the /dev hierarchy.
Challenge
Confirm Expected Lambda Behavior
You will confirm that the success and failure tests produce the expected results. The success test will display the parameter values, and the failure test will result in a failed execution.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.