initial commit of replacement infrastructure automation
[awsible] / infrastructure / BOOTSTRAP.md
1 # AWSible Infrastructure via Terraform
2
3 Ensure the correct profile will be used:
4
5 export AWS_PROFILE=profile
6
7 Initialize the shared infrastructure needed by terraform:
8
9 pushd terraform-infrastructure
10 terraform init
11 terraform apply
12 ../generate-backend-configs.sh > backend.tf
13 echo yes | terraform init
14 popd
15
16 Create the VPC:
17
18 pushd vpc
19 ../generate-backend-configs.sh > backend.tf
20 terraform init
21 terraform apply
22 popd
23
24 Create the management stack:
25
26 pushd management-stack
27 ../generate-backend-configs.sh > backend.tf
28 terraform init
29 terraform apply
30 popd
31
32 Create the vpcaccess stack:
33
34 pushd vpcaccess-stack
35 ../generate-backend-configs.sh > backend.tf
36 terraform init
37 terraform apply
38 popd
39
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.
43
44 Create and deploy any other stacks.