[{"data":1,"prerenderedAt":69},["ShallowReactive",2],{"pattern-lambda-ssm-sam-java":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":15,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":27,"language":32,"level":33,"meta":34,"patternArch":35,"resources":49,"s3URL":61,"services":6,"stem":62,"testing":63,"videoId":6,"__hash__":68},"patterns\u002Fpatterns\u002Flambda-ssm-sam-java.json","AWS Lambda to SSM Parameter Store",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[13,14],"content\u002Fcontributors\u002Fgreg-davis.json","content\u002Fcontributors\u002Fsteven-cook.json",{"text":16},[17],"sam deploy --guided","Creates an AWS Lambda function and an AWS Systems Manager Parameter Store parameter","json","AWS SAM",{"template":22},{"projectFolder":23,"repoURL":24,"templateURL":25,"templateFile":26},"lambda-ssm-parameter-java","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-ssm-parameter-java","serverless-patterns\u002Flambda-ssm-parameter-java","template.yml",{"headline":28,"text":29},"How it works",[30,31],"This pattern creates an AWS Lambda function and an AWS Systems Manager Parameter Store parameter. The parameter is added as a function environment variable named \"SSMParameterName\".","The method can be either GET (retrieve current parameter value) or PUT (update parameter with new value). The body of the event is used to define the new value of the parameter.","Java","100",{},{"icon1":36,"icon2":41,"line1":45},{"x":37,"y":38,"service":39,"label":40},20,50,"lambda","AWS Lambda",{"x":42,"y":38,"service":43,"label":44},75,"ssm","Systems Manager Parameter Store",{"from":46,"to":47,"label":48},"icon1","icon2","",{"headline":50,"bullets":51},"Additional resources",[52,55,58],{"text":53,"link":54},"The AWS::SSM::Parameter resource","https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Faws-resource-ssm-parameter.html",{"text":56,"link":57},"Sharing Secrets with AWS Lambda Using AWS Systems Manager Parameter Store","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fsharing-secrets-with-aws-lambda-using-aws-systems-manager-parameter-store\u002F",{"text":59,"link":60},"Restricting access to Systems Manager parameters using IAM policies","https:\u002F\u002Fdocs.aws.amazon.com\u002Fsystems-manager\u002Flatest\u002Fuserguide\u002Fsysman-paramstore-access.html","https:\u002F\u002Fda-public-assets.s3.amazonaws.com\u002Fpatterns\u002Flambda-ssm-sam-java\u002Fcloudformation.yml","patterns\u002Flambda-ssm-sam-java",{"headline":64,"text":65},"Testing",[66,67],"1. Once the application is deployed, navigate to the Lambda function and configure GET and PUT test events. Invoke the function using each test event. Review the Amazon CloudWatch Logs for details on the function invocation. Navigate to the AWS Systems Manager Paramater Store to observe changes to the parameter value after a PUT event.","2. See the repo for detailed test event information.","UO1qY7WXeZEdehKSt_aTJAMzamL9vQiJPuw0w5TRSjY",1778846886752]