A sample starting point for an AWS lambda implemented in golang.
Yes, aws sam
cloudformation
serverless
are other options. This was written for smaller scale hobby use.
- Setup ~/.aws/config and ~/.aws/credentials according to AWS Documentation
- Function name will be derived from the last part of the
go.mod
module name. - Install mage and run
mage
to deploy ormage delete
to remove the function and associated roles. - Customize additional roles in mage.go#L180.
- Run mage with the
-v
switch to see additional debugging.
created by tigwen