-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo4.yml
163 lines (153 loc) · 3.03 KB
/
demo4.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
---
name: demo
datacenter: aws-de
vpcs:
- name: vpc1
subnet: 10.0.0.0/16
auto_remove: true
networks:
- name: dmz1
vpc: vpc1
subnet: 10.0.11.0/24
availability_zone: eu-central-1a
public: true
- name: web1
vpc: vpc1
subnet: 10.0.12.0/24
availability_zone: eu-central-1a
public: false
nat_gateway: nat1
- name: dmz2
vpc: vpc1
subnet: 10.0.13.0/24
availability_zone: eu-central-1b
public: true
- name: web2
vpc: vpc1
subnet: 10.0.14.0/24
availability_zone: eu-central-1b
public: false
nat_gateway: nat2
nat_gateways:
- name: nat1
public_network: dmz1
- name: nat2
public_network: dmz2
security_groups:
- name: vm-sg
vpc: vpc1
egress:
- ip: 0.0.0.0/0
protocol: any
from_port: '0'
to_port: '65535'
ingress:
- ip: 10.0.0.0/16
protocol: tcp
from_port: '0'
to_port: '65535'
- ip: 79.173.143.3/32
protocol: tcp
from_port: '0'
to_port: '65535'
- ip: 81.96.158.43/32
protocol: tcp
from_port: '0'
to_port: '65535'
- name: rds-sg
vpc: vpc1
egress:
- ip: 10.0.0.0/16
protocol: tcp
from_port: '0'
to_port: '65535'
ingress:
- ip: 10.0.0.0/16
protocol: tcp
from_port: '0'
to_port: '65535'
- name: elb-sg
vpc: vpc1
egress:
- ip: 0.0.0.0/0
protocol: any
from_port: '0'
to_port: '65535'
ingress:
- ip: 10.0.0.0/16
protocol: tcp
from_port: '0'
to_port: '65535'
- ip: 0.0.0.0/0
protocol: tcp
from_port: '80'
to_port: '80'
instances:
- name: web1
type: t2.micro
image: ami-8504fdea
network: web1
start_ip: 10.0.12.11
count: 2
key_pair: jason-work
user_data: '@{aws-rds-elb-data.yml}'
security_groups:
- vm-sg
volumes:
- volume: test-vol
device: /dev/sdx
route53_zones:
- name: r3dev.io
private: false
records:
- entry: mysql.r3dev.io
type: CNAME
ttl: 3600
rds_instances:
- mysql1
- entry: demo.r3dev.io
type: CNAME
ttl: 3600
loadbalancers:
- elb1
rds_instances:
- name: mysql1
size: db.t2.micro
public: false
availability_zone: eu-central-1a
networks:
- web1
- web2
port: 3306
license: general-public-license
security_groups:
- rds-sg
engine: mysql
storage:
type: gp2
size: 20
database_name: mysqltest5
database_username: mysqltest5
database_password: mysqltest5
loadbalancers:
- name: elb1
networks:
- dmz1
instances:
- web1
listeners:
- from_port: 80
to_port: 80
protocol: http
security_groups:
- elb-sg
s3_buckets:
- name: reidjc-s3-test1
bucket_location: eu-central-1
acl: private
ebs_volumes:
- name: test-vol
count: 2
type: gp2
size: 10
availability_zone: eu-central-1a