{"id":18532156,"url":"https://github.com/weibeld/sam-hello-world","last_synced_at":"2025-10-05T19:45:21.720Z","repository":{"id":53981905,"uuid":"155922755","full_name":"weibeld/sam-hello-world","owner":"weibeld","description":"AWS Serverless Application Model (SAM) Hello World Application","archived":false,"fork":false,"pushed_at":"2021-03-10T18:08:33.000Z","size":566,"stargazers_count":17,"open_issues_count":0,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T07:56:52.385Z","etag":null,"topics":["aws","aws-lambda","aws-sam"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weibeld.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-02T21:21:16.000Z","updated_at":"2023-10-27T15:23:30.000Z","dependencies_parsed_at":"2022-08-13T05:40:47.166Z","dependency_job_id":null,"html_url":"https://github.com/weibeld/sam-hello-world","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weibeld%2Fsam-hello-world","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weibeld%2Fsam-hello-world/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weibeld%2Fsam-hello-world/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weibeld%2Fsam-hello-world/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weibeld","download_url":"https://codeload.github.com/weibeld/sam-hello-world/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248055101,"owners_count":21040122,"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","aws-lambda","aws-sam"],"created_at":"2024-11-06T19:04:42.910Z","updated_at":"2025-10-05T19:45:16.677Z","avatar_url":"https://github.com/weibeld.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SAM Hello World\n\nThis repository contains a sample AWS Lambda application defined with the AWS [Serverless Application Model (SAM)](https://github.com/awslabs/serverless-application-model).\n\n![AWS SAM](sam.png)\n\n## Application\n\nThe sample application provides a REST API (with API Gateway) with a single endpoint. When this endpoint is requested, a Lambda function is triggered, which sends an email to you via the Simple Notification Service (SNS).\n\n![Application](figures/sam-hello-world-3.png)\n\n## Stages\n\nThis repository contains three AWS Lambda applications, where each application is a stage of the final application:\n\n- [sam-hello-world-1](sam-hello-world-1)\n- [sam-hello-world-2](sam-hello-world-2)\n- [sam-hello-world-3](sam-hello-world-3)\n\nThe third stage in [sam-hello-world-3](sam-hello-world-3) is the final application, and the others are intermediate stages that you would go through when developing the final application. These intermediate stages are included here for learning purposes.\n\nYou can deploy each stage as an independent Lambda application to AWS, as described in the following.\n\n## Deploy\n\nYou can deploy the application to AWS with the [SAM CLI](https://github.com/awslabs/aws-sam-cli):\n\n~~~bash\nsam package \\\n  --template-file template.yml \\\n  --output-template-file package.yml \\\n  --s3-bucket \u003cMY_BUCKET\u003e\n\nsam deploy \\\n  --template-file package.yml \\\n  --stack-name \u003cMY_STACK\u003e \\\n  --capabilities CAPABILITY_IAM\n~~~\n\nYou have to provide the name of an existing AWS S3 bucket in your account to the `sam package` command. The `sam package` command uploads the application artefacts (in this case the Lambda function code) to this bucket. When you later trigger a deployment with the `sam deploy` command, AWS gets the artefacts from this bucket.\n\nFor installing he SAM CLI, use the following:\n\n~~~bash\npip install aws-sam-cli\n~~~\n\n## Article\n\nThis is an accompanying code repository of the following article:\n\n\u003e [Creating AWS Lambda Applications With SAM](https://medium.com/@weibeld/creating-aws-lambda-applications-with-sam-dd13258c16dd)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweibeld%2Fsam-hello-world","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweibeld%2Fsam-hello-world","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweibeld%2Fsam-hello-world/lists"}