[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"pattern-lambda-cloudwatch":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":29,"language":33,"level":34,"meta":35,"patternArch":36,"resources":49,"s3URL":58,"services":59,"stem":60,"testing":61,"videoId":28,"__hash__":65},"patterns\u002Fpatterns\u002Flambda-cloudwatch.json","AWS Lambda to Amazon CloudWatch",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],"content\u002Fcontributors\u002Frohan-mehta.json",{"text":15},[16],"sam deploy --guided","Create a Lambda function that publishes custom metrics to CloudWatch","json","AWS SAM",{"template":21,"payloads":26},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"lambda-cloudwatch","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-cloudwatch","serverless-patterns\u002Flambda-cloudwatch","template.yaml",[27],{"headline":28,"payloadURL":28},"",{"headline":30,"text":31,"test":28},"How it works",[32],"This SAM template deploys a Lambda function that inserts custom metric data into AWS CloudWatch. The AWS SAM template deploys the resources and the IAM permissions required to run the application.","Node.js","200",{},{"icon1":37,"icon2":42,"line1":46},{"x":38,"y":39,"service":40,"label":41},20,50,"lambda","AWS Lambda",{"x":43,"y":39,"service":44,"label":45},80,"cloudwatch","CloudWatch",{"from":47,"to":48,"label":28},"icon1","icon2",{"headline":50,"bullets":51},"Additional resources",[52,55],{"text":53,"link":54},"The Lambda Operators Guide","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Foperatorguide\u002Fintro.html",{"text":56,"link":57},"Publishing custom metrics","https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FpublishingMetrics.html","https:\u002F\u002Fda-public-assets.s3.amazonaws.com\u002Fpatterns\u002Flambda-cloudwatch\u002Fcloudformation.yml",{"from":40,"to":44},"patterns\u002Flambda-cloudwatch",{"headline":62,"text":63},"Testing",[64],"See the GitHub repo for detailed testing instructions.","mtBe1i8AsIMklf8xLd8R6a9gOpW4_Pump7i6jgsiigI",1778927709110]