Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.26 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.26 KB

AWS SAM CLI better application templates for Go

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.

How to use this template

  1. Install the AWS SAM CLI
  2. From a terminal, run sam init
  3. Select option 2 - Custom Template Location
  4. Enter gh:rts-rob/aws-sam-better-golang
  5. Provide a project name, e.g., hello-world
  6. Change into the created directory
  7. Build with sam build
  8. 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.

Contributing

Issue reports and pull requests to help improve these application templates are always welcome. Please see CONTRIBUTING.md.

License

This project is licensed under the MIT License.