Building The AMI

cd packer
packer build sysbench.json

If you want to delete the AMI, make sure to also delete the ELB snapshot associated with it.

Managing The Infrastructure

  • Initialization
    cd terraform
    terraform init
  • Deployment
    terraform apply -var 'apply_immediately=true'
  • Destruction
    terraform destroy