-
Notifications
You must be signed in to change notification settings - Fork 0
/
AWS-Create-Stack-F5.json
193 lines (190 loc) · 4.93 KB
/
AWS-Create-Stack-F5.json
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Install F5 Network BigIP VM-Series with BYOL in AWS",
"Parameters": {
"SSHKey": {
"Description": "Name of an existing EC2 KeyPair to enable SSH access to the server and VM-Series helper instance (Hint: You MUST have its private key)",
"Type": "AWS::EC2::KeyPair::KeyName"
},
"VPCidDATA": {
"Description": "Name of an existing EC2 VPC)",
"Type": "AWS::EC2::VPC::Id"
},
"SUBNETidDATA1": {
"Description": "Name of an existing EC2 DMZ SUBNET)",
"Type": "AWS::EC2::Subnet::Id"
},
"SUBNETidDATA2": {
"Description": "Name of an existing EC2 Trust SUBNET)",
"Type": "AWS::EC2::Subnet::Id"
},
"SUBNETidDATA3": {
"Description": "Name of an existing EC2 Management SUBNET)",
"Type": "AWS::EC2::Subnet::Id"
}
},
"Resources": {
"AWSNetworkInterfaceF51": {
"Type": "AWS::EC2::NetworkInterface",
"Properties": {
"Description": "AWS F5 BigIP DMZ",
"SubnetId": { "Ref": "SUBNETidDATA1" },
"PrivateIpAddresses": [
{
"PrivateIpAddress": "10.0.2.100",
"Primary": "true"
}
],
"GroupSet": [
{
"Ref": "AWSSecurityGroupF5"
}
]
}
},
"AWSNetworkInterfaceF52": {
"Type": "AWS::EC2::NetworkInterface",
"Properties": {
"Description": "AWS F5 BigIP Trust",
"SubnetId": { "Ref": "SUBNETidDATA2" },
"PrivateIpAddresses": [
{
"PrivateIpAddress": "10.0.1.100",
"Primary": "true"
}
],
"GroupSet": [
{
"Ref": "AWSSecurityGroupF5"
}
]
}
},
"AWSNetworkInterfaceF53": {
"Type": "AWS::EC2::NetworkInterface",
"Properties": {
"Description": "AWS F5 BigIP MGMT",
"SubnetId": { "Ref": "SUBNETidDATA3" },
"PrivateIpAddresses": [
{
"PrivateIpAddress": "10.0.0.100",
"Primary": "true"
}
],
"GroupSet": [
{
"Ref": "AWSSecurityGroupF5"
}
]
}
},
"AWSInstanceF51": {
"Type": "AWS::EC2::Instance",
"Properties": {
"ImageId": "ami-39da0841",
"InstanceType": "m3.xlarge",
"KeyName": { "Ref": "SSHKey" },
"Monitoring": "false",
"Tags": [
{
"Key": "Stack",
"Value": "StackF5"
},
{
"Key": "Name",
"Value": "F5 Networks VM-Series BigIP"
}
],
"NetworkInterfaces": [
{
"Description": "F5 MGMT",
"DeviceIndex": 0,
"NetworkInterfaceId": { "Ref": "AWSNetworkInterfaceF53" },
},
{
"Description": "F5 DMZ",
"DeviceIndex": 1,
"NetworkInterfaceId": { "Ref": "AWSNetworkInterfaceF51" },
},
{
"Description": "F5 Trust",
"DeviceIndex": 2,
"NetworkInterfaceId": { "Ref": "AWSNetworkInterfaceF52" },
}
]
},
"DependsOn": [ "AWSNetworkInterfaceF53", "AWSNetworkInterfaceF51", "AWSNetworkInterfaceF52" ]
},
"AWSSecurityGroupF5": {
"Type": "AWS::EC2::SecurityGroup",
"Properties": {
"GroupDescription": "F5 Wide open security group",
"VpcId": { "Ref": "VPCidDATA" },
"Tags": [
{
"Key": "Stack",
"Value": "StackF5"
},
{
"Key": "Name",
"Value": "F5 Wide open security group"
}
]
}
},
"AWSEIP3": {
"Type": "AWS::EC2::EIP",
"Properties": {
"Domain": "vpc"
}
},
"assoc3": {
"Type": "AWS::EC2::EIPAssociation",
"Properties": {
"AllocationId": {
"Fn::GetAtt": [
"AWSEIP3",
"AllocationId"
]
},
"NetworkInterfaceId": {
"Ref": "AWSNetworkInterfaceF53"
}
}
},
"ingress1": {
"Type": "AWS::EC2::SecurityGroupIngress",
"Properties": {
"GroupId": {
"Ref": "AWSSecurityGroupF5"
},
"IpProtocol": "-1",
"CidrIp": "0.0.0.0/0"
}
},
"egress1": {
"Type": "AWS::EC2::SecurityGroupEgress",
"Properties": {
"GroupId": {
"Ref": "AWSSecurityGroupF5"
},
"IpProtocol": "-1",
"CidrIp": "0.0.0.0/0"
}
},
},
"Description": "Default Company F5 Stack",
"Outputs": {
"F5ManagementURL": {
"Description": "F5 VM-Series management interface URL",
"Value": { "Fn::Join" : ["", [
"https://",
{ "Fn::GetAtt": [ "AWSInstanceF51", "PublicIp" ]}
]]}
},
"F5ManagementEIP": {
"Description": "F5 VM-Series management interface EIP",
"Value": { "Fn::GetAtt": [ "AWSInstanceF51", "PublicIp" ]}
}
}
}