Example HA infrastructure for simple NodeJS applications implemented in Terraform.
- Terraform Cloud account (Free or better).
- AWS account with
AmazonEC2FullAccess
andAutoScalingFullAccess
permissions. - Access key with ID and secret for the above account.
- Create a workspace in Terraform Cloud.
- Connect it to GitHub repository https://github.com/pawelpesz/nodejs-high-availability.git.
- Configure
AWS_ACCESS_KEY_ID
,AWS_SECRET_ACCESS_KEY
environment variables in Terraform Cloud. - Optionally overwrite variable defaults.
- Start a run, first one will set up the infrastructure and fire the benchmark. Subsequent applies will trigger the benchmark again.