A web api application
Serverless code using aws lambda: Serveless
Infrastructure as code using AWS CloudFormation: Infrastructure
- Go v1.17
- MySQL 8.0.27
- Clone the repository
- Edit
.envfile with your db credentials - Run the command
go run server.goin the terminal from the repository directory
- packer 1.7.10
- Export packer log
export PACKER_LOG=1 - Build image
packer build \
-var 'aws_access_key=' \
-var 'aws_secret_key=' \
-var 'aws_region=us-east-1' \
-var 'subnet_id=subnet-0f960342a73f60dc2' \
-var 'source_ami=ami-033b95fb8079dc481' \
ami.pkr.hcl
packer build --var-file=variables.pkrvars.hcl ami.pkr.hcl