-
Build the binary
GOOS=linux go build -o main main.go
-
Zip the binary
zip deployment.zip main
-
Create db instance
aws rds create-db-instance \
--db-instance-identifier MySQLForLambdaTest \
--db-instance-class db.t2.micro \
--engine MySQL \
--allocated-storage 5 \
--no-publicly-accessible \
--db-name ExampleDB \
--master-username username \
--master-user-password password \
--backup-retention-period 3