Skip to content

buzdyk/go-lambda-github-actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project to explore GitHub Actions, AWS CDK, and AWS Lambda.

Base app is written in Go and simply outputs an IP address of a function visitor.

Local Lambda development with Amazon Sam

Creates AWS infrastructure with Amazon CDK

  • npm install -g aws-sdk
  • run make build-and-zip to create a binary. It's required to create a Lambda function
  • run cd cdk
  • run cdk bootstrap
  • run AWS_ACCOUNT_ID=1111 AWS_REGION=us-east1 cdk deploy. It will eventually output values required to run a pipeline
  • run cdk destroy to delete created resources

CI/CD with GitHub Actions

  • pipeline config is located in .github/workflows
  • pipeline requires the following secrets to work: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_LAMBDA_ARN
  • secrets are added on github.com/user/repository/settings/secrets/actions under Repository secrets

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published