1 # AWSible Infrastructure via Terraform
3 Ensure the correct profile will be used:
5 export AWS_PROFILE=profile
7 Initialize the shared infrastructure needed by terraform:
9 pushd terraform-infrastructure
12 ../generate-backend-configs.sh > backend.tf
13 echo yes | terraform init
19 ../generate-backend-configs.sh > backend.tf
24 Create the management stack:
26 pushd management-stack
27 ../generate-backend-configs.sh > backend.tf
32 Create the vpcaccess stack:
35 ../generate-backend-configs.sh > backend.tf
40 Run Ansible by hand to configure the vpcaccess server, then connect to the VPN.
41 Populate the management EFS.
42 Run Ansible by hand to configure a management server, then scale up the management ASG.
44 Create and deploy any other stacks.