summaryrefslogtreecommitdiff
path: root/TerraformCloud/AWS_terraform_ansible_single_vyos_instance-main/README.md
blob: 0577dfa0491e7cae6a331d5ce60d17a8a347ddd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# AWS_terraform_ansible_single_vyos_instance
How to create a single instance and install your configuration using Terraform+Ansible+AWS 
Step by step:
# AWS
1.1 Create an account with AWS and get your "access_key", "secret key"

1.2 Create a key pair and download your .pem key

1.3 Create a security group for the new VyOS instance
# Terraform
2.1 Create a UNIX or Windows instance

2.2 Download and install Terraform

2.3 Create the folder for example ../awsvyos/

2.4 Copy all files from my folder /Terraform into your Terraform project (vyos.tf, var.tf)
2.4.1 Please type the information into the strings 22, 35, 36 of file "vyos.tf"

2.5 Type the commands :

   #cd /your folder
   
   #terraform init
# Ansible
3.1 Create a UNIX instance

3.2 Download and install Ansible

3.3 Create the folder for example /root/aws/

3.4 Copy all files from my folder /Ansible into your Ansible project (ansible.cfg, instance.yml, mykey.pem)

mykey.pem you have to get using step 1.2
# Start 
4.1 Type the commands on your Terrafom instance:
   
   #cd /your folder 

   #terraform plan  

   #terraform apply  
   
   #yes

![ezcv logo](/images/aws.png)