{"id":17649075,"url":"https://github.com/efokschaner/lambda-at-edge-dash-cf-template","last_synced_at":"2025-06-22T06:06:42.147Z","repository":{"id":75502794,"uuid":"155355240","full_name":"efokschaner/lambda-at-edge-dash-cf-template","owner":"efokschaner","description":"A stock Lambda@Edge CloudWatch Dashboard that works","archived":false,"fork":false,"pushed_at":"2018-10-30T09:29:10.000Z","size":7,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-22T06:06:27.670Z","etag":null,"topics":["aws-cloudformation","aws-cloudwatch","aws-lambda-edge"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/efokschaner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-30T09:07:06.000Z","updated_at":"2023-08-14T19:15:55.000Z","dependencies_parsed_at":"2023-06-06T16:45:19.462Z","dependency_job_id":null,"html_url":"https://github.com/efokschaner/lambda-at-edge-dash-cf-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/efokschaner/lambda-at-edge-dash-cf-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efokschaner%2Flambda-at-edge-dash-cf-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efokschaner%2Flambda-at-edge-dash-cf-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efokschaner%2Flambda-at-edge-dash-cf-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efokschaner%2Flambda-at-edge-dash-cf-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/efokschaner","download_url":"https://codeload.github.com/efokschaner/lambda-at-edge-dash-cf-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efokschaner%2Flambda-at-edge-dash-cf-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261244053,"owners_count":23129642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-cloudformation","aws-cloudwatch","aws-lambda-edge"],"created_at":"2024-10-23T11:23:56.345Z","updated_at":"2025-06-22T06:06:37.100Z","avatar_url":"https://github.com/efokschaner.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A stock Lambda@Edge CloudWatch Dashboard that works\n\n## Why might I need this?\n- You're using [AWS Lambda@Edge](https://docs.aws.amazon.com/lambda/latest/dg/lambda-edge.html).\n- You've noticed that the stock \"Monitoring\" tab, that displays \"CloudWatch metrics at a glance\", is not working.\n- You wish to have those graphs of \"Invocations\", \"Duration\", \"Errors, Availability (%)\", and \"Throttles\", for all AWS regions.\n\nThen this might be the solution for you.\n\n## How to use\nThe file [lambda-edge-dash.template.json](./lambda-edge-dash.template.json?raw=true) contains the CloudFormation template.\nYou can use the template via whatever approach to CloudFormation you are comfortable with.\nIf you have less experience with CloudFormation perhaps [this is a good starting point](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-console-create-stack.html) for how to use a CloudFormation template.\nFor this template specifically, it's not creating any actual infrastructure so you probably won't need to worry about many of the CloudFormation options (eg. Rollback Triggers).\n\nYou will pass 3 parameters to the template to create a \"Stack\" consisting of one CloudWatch Dashboard.\n- *FunctionName* - The name of the lambda function you wish to monitor eg. \"testLambdaPlsIgnore\",\n- *FunctionVersion* - The version of the function you wish to monitor eg. \"3\"\n- *DashboardName* - The name of the CloudWatch dashboard that will be created. It is recommended to incorporate the Lambda's name and version to avoid aliasing. eg. \"testLambdaPlsIgnore-v3\"\n\n## Iterating on the Dashboard\nIf the stock dashboard is not quite right for you, you may wish to iterate on it by cloning this repo.\nYou will need Node.js to run `make.js` (I used Node.js v9.2.0 in case it matters).\nTo rebuild `lambda-edge-dash.template.json` run `node make.js`.\n`make.js` uses any **us-east-1** widgets in `per-region-widgets.json` to define the widgets that will show for all regions.\n`per-region-widgets.json` is in standard JSON format for a CloudWatch Dashboard, which means you can play around with the **us-east-1** widgets in an existing CloudWatch Dashboard and then extract the full JSON source back to `per-region-widgets.json`.\n\n## Why?\nWhen an AWS lambda is used at the edge, the stock \"Monitoring\" tab, that displays \"CloudWatch metrics at a glance\", does not work. This seems to be because AWS actually clones your Lambda function with a new `FunctionName` of `us-east-1.\u003cYOUR_FUNCTION_NAME\u003e` (this `us-east-1.` prefix seems independent of the region in which the lambda runs). Add to this the fact that the function will be able to run in a large number of AWS regions therefore you will likely need the same dashboard widgets repeated for every region.\nThis project solves the function naming issue as well as sharing the definition of widgets for every AWS region.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefokschaner%2Flambda-at-edge-dash-cf-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fefokschaner%2Flambda-at-edge-dash-cf-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefokschaner%2Flambda-at-edge-dash-cf-template/lists"}