This repository contains a better "Hello, world!" template for AWS SAM CLI applications that use the Go runtime. This template includes the necessary setup for dependency injection to support mocks for testing.
- Install the AWS SAM CLI
- From a terminal, run
sam init
- Select option 2 - Custom Template Location
- Enter gh:rts-rob/aws-sam-better-golang
- Provide a project name, e.g., hello-world
- Change into the created directory
- Build with
sam build
- Deploy with
sam deploy --guided
Now you have a sample application with Amazon API Gateway, Amazon DynamoDB, and AWS Lambda deployed and running in the region you specified.
Issue reports and pull requests to help improve these application templates are always welcome. Please see CONTRIBUTING.md.
This project is licensed under the MIT License.