-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaws-rds-elb.yml
138 lines (130 loc) · 2.62 KB
/
aws-rds-elb.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
---
name: demo
datacenter: aws-de
vpc_subnet: 10.0.0.0/16
networks:
- name: dmz1
subnet: 10.0.11.0/24
availability_zone: eu-central-1a
public: true
- name: web1
subnet: 10.0.12.0/24
availability_zone: eu-central-1a
public: false
nat_gateway: nat1
- name: dmz2
subnet: 10.0.13.0/24
availability_zone: eu-central-1b
public: true
- name: web2
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: sg-vm
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: sg-rds
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: sg-elb
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: 1
key_pair: jason-work
user_data: '@{aws-rds-elb-data.yml}'
security_groups:
- sg-vm
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:
- sg-rds
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:
- sg-elb