Install and configure Scalr IaCP with Terraform on AWS with an RDS database and ALB load balancer
This template will install Scalr on a single server
This template is configured as follows.
- Built for AWS - Expects credentials to be provided via Environment Variables
- Auto selects latest Canonical Ubuntu 16.04 LTS AMI for the chosen region
- Uses DNS name generated by the ALB
- Generates self-signed cert for Scalr/ALB using tls_self_signed_cert. You can replace the cert later.
- Pull the repo.
- Upload your public key to AWS.
- Copy your Scalr license to ./license/license.json in the repo
- Copy your private ssh key to ./ssh/id_rsa in the repo
- Set values for the following variables in terraform.tfvars(.json) or provide values on the command line at runtime
region
- AWS Region to use.key_name
- Key in AWS.token
- Your packagecloud.io download token supplied with the license.vpc
- VPC to be used. Must have an associated internet gateway to enable egress from all subnets.instance_type
- Must be 4GB ram. t3.medium recommended.name_prefix
- 1-3 character prefix to be added to all instance names.- Set your access keys for AWS using environment variables
export AWS_ACCESS_KEY_ID=<access_key> AWS_SECRET_ACCESS_KEY=<secret_key>
- Run
terraform init;terraform apply
and watch the magic happen.
Note: This represents the baseline configuration. It is up to you to add things like backup policies, autoscaling, proper SSL certs etc to the configuration.