This is a very simple Golang script that utilizes V2 of the AWS Golang SDK and Golang's Go Routines to Asynchrounsly upload zip files to AWS Lambda Functions.
This script takes a total of two (2) args.
- [Required] Is the directory where the zip archives reside
- [Optional] Is the format string that will be passed the name of the zip file with the
.zip
extension trimmed off. Use this if the name of the function being updated has additional identifiers associated with it (i.e. The zip is calledanimals
and the lambda function name isanimals-handler
then this args would be%s-handler
)
$ deploy-functions ./dist
$ deploy-functions ./dist %s-handler