[{"data":1,"prerenderedAt":62},["ShallowReactive",2],{"pattern-lambda-ssm-parameter-terraform":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":27,"language":32,"level":33,"meta":34,"patternArch":35,"resources":49,"s3URL":6,"services":6,"stem":57,"testing":58,"videoId":6,"__hash__":61},"patterns\u002Fpatterns\u002Flambda-ssm-parameter-terraform.json","AWS Lambda to SSM Parameter Store",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>terraform destroy\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>terraform show\u003C\u002Fcode>",[13],"content\u002Fcontributors\u002Fstephen-monaghan.json",{"text":15},[16,17],"terraform init","terraform apply","Creates an AWS Lambda function and an AWS Systems Manager Parameter Store parameter","json","Terraform",{"template":22},{"repoURL":23,"templateURL":24,"projectFolder":25,"templateFile":26},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-ssm-parameter-terraform","serverless-patterns\u002Flambda-ssm-parameter-terraform","lambda-ssm-parameter-terraform","main.tf",{"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.","Node.js","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},80,"ssm","SSM Parameter Store",{"from":46,"to":47,"label":48},"icon1","icon2","",{"bullets":50},[51,54],{"text":52,"link":53},"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":55,"link":56},"Restricting access to Systems Manager parameters using IAM policies","https:\u002F\u002Fdocs.aws.amazon.com\u002Fsystems-manager\u002Flatest\u002Fuserguide\u002Fsysman-paramstore-access.html","patterns\u002Flambda-ssm-parameter-terraform",{"text":59},[60],"See the README in the GitHub repo for detailed testing instructions.","r1JpDsp2PCVhMB7bohuFfPwKBsIuj-WKCj31v46-XC8",1779273337951]