Create bucket using this command, Please type unique name for bucket
./1_create_s3_bucket.sh
Build, zip, and upload code to S3 using this command. You can take a look code inside lambda-go folder. Script will ask you to type version, just type e.g. "1.0.0"
./2_build_zip_upload.sh
Create lambda and api gateway using this command. Script will ask you type for version, pleaset type version you create in step number 2 "1.0.0"
./3_terraform_apply_auto_version.sh
Access your code in terraform output, base_url
Updating Code
Go to scripts folder
Update main.go inside lambda-go folder line 17 "Hello" to "Hello Ludes"
Build, zip, and upload code to S3 using this command. You can take a look code inside lambda-go folder. Script will ask you to type version, you can change your version with another tag e.g. "1.0.1"
./2_build_zip_upload.sh
Create lambda and api gateway using this command. Script will ask you type for version, pleaset type version you create in step number 2 "1.0.1"