If you don't know what this does or how to plan the runs first, don't do this:
terraform apply -var-file terraform.tfvars
- have domain name registered with any registrar
- have aws cli setup with credentials files in home dir
- clone/download this repo
- copy
terraform.tfvars.example
toterraform.tfvars
and fill - manually create aws route53 Hosted Zone with the name matching
terraform.tfvars
: web_cv_domain = "yakspa.com" # (has trailing dot in aws HZ) - with external registrar, point domain to above Hosted Zone nameservers (get from aws console in the default record sets NS type)
- have an ansible repo from which to install the app
- sets up EC2 (in eu-west-1 by default):
- vpc
- subnet
- gateway
- routing table
- t2.nano, ubuntu 16 instance
1. includes userdata to bootstrap the instance with ansible installation and
ansible-pull
cron to given repo (seeterraform.tfvars
) - elastic IP (EIP) to instance
- security groups (ssh and http)
- sets up Route53 Record Sets (
example.com
andwww.example.com
) against your existing Hosted Zone to point to the public EIP of the webserver.
The source code for generating the html/css/js that makes up the release package: https://github.com/sadams/cv
To deploy this application to the web servers: https://github.com/sadams/cv-ansible