Skip to content
This repository was archived by the owner on Nov 28, 2023. It is now read-only.

Commit 80e613e

Browse files
author
Denis Brækhus
committed
Improve description on how to use aws-ec2 deploy
1 parent 2c4a0c0 commit 80e613e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

deployment/terraform/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ Copy the ``terraform-inventory`` binary that works for your platform to the ``bi
1919

2020
### Quickstart EC2
2121

22-
1. Edit the terraform.tfvars file and insert AWS credentials and sshkey
23-
2. Run ``./deploy aws-ec2`` to run start instances, provision and run tests
24-
3. Run ``terraform destroy aws-ec2`` to remove all AWS resources created by ``deploy``
22+
1. Edit the terraform.tfvars file and insert AWS credentials and sshkey, or add them to a separate terraform.tfvars.mine file.
23+
2. Run ``./deploy aws-ec2 [terraform.tfvars.mine]`` to run start instances, provision and run tests
24+
3. Run ``./destroy aws-ec2 [terraform.tfvars.mine]`` to remove all AWS resources created by ``deploy``
2525

2626
### Manual EC2 run
2727

2828
1. Edit the terraform.tfvars file and insert AWS credentials and sshkey
29-
2. Run ``terraform plan aws-ec2`` to verify the plan
30-
3. Run ``terraform apply aws-ec2`` to spin up instances
29+
2. Run ``terraform plan aws-ec2 [-var-file=terraform.tfvars.mine]`` to verify the plan
30+
3. Run ``terraform apply aws-ec2 [-var-file=terraform.tfvars.mine]`` to spin up instances
3131
4. Run ``ansible-playbook --inventory-file=bin/terraform-inventory playbook.yml``
32-
5. Run ``terraform destroy aws-ec2`` to remove all resources
32+
5. Run ``terraform destroy aws-ec2 [-var-file=terraform.tfvars.mine]`` to remove all resources
3333

3434
### Nodes
3535

@@ -41,12 +41,12 @@ The setup consists of three nodes:
4141

4242
### Custom setups
4343

44-
The ec2 regiom, instance types and ami to use is configured in ``aws-ec2/vars.tf``, default is **m3.medium** and the official Centos7 AMI.
44+
The ec2 regiom, instance types and ami to use is configured with variables, default is **m3.medium** and the official Centos7 AMI.
4545

4646
::
4747

4848
aws_ec2_region = "us-east-1"
49-
aws_ec2_ami = "ami-61bbf104" (Centos7 64bit)
49+
aws_ec2_ami = "ami-6d1c2007" (Centos7 64bit)
5050
instance_types = "m3.medium" (Can be configured per node)
5151

5252
## DigitalOcean

0 commit comments

Comments
 (0)