-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprod.yaml-e
More file actions
254 lines (254 loc) · 6.55 KB
/
prod.yaml-e
File metadata and controls
254 lines (254 loc) · 6.55 KB
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
Description: ''
Parameters:
VpcCIDR:
Description: Please enter the IP range (CIDR notation) for this VPC
Type: String
CentralVPNSecurityGroup:
Type: String
Default: sg-0a3dc649e97adf790
PrivateSubnet:
Description: Please enter a comma separated list of IP ranges (CIDR notation)
for the private subnet
Type: CommaDelimitedList
PublicSubnet:
Description: Please enter a comma separated list of IP ranges (CIDR notation)
for the public subnet
Type: CommaDelimitedList
HostedZoneId:
Description: The HOSTED_ZONE_ID in AWS for solvestack.com (may change to another
hosted zone in future)
Type: String
Default: Z07515425R88X5ZJDD64
PrivateHostedZoneId:
Type: String
Description: The private hosted zone ID. Default is internal.solvestack.com
Default: Z3UG1K4CTXT0KD
AspNetCoreEnvironment:
Description: Used for DOTNET projects. Either Production or Development
Type: String
AllowedValues:
- Production
- Development
DatabaseUsername:
Description: The endpoint for the postgres database created for this deployment
Type: String
DatabasePassword:
Description: The endpoint for the postgres database created for this deployment
Type: String
DbParameterGroup:
Description: parameters for postgres
Type: String
Default: default.postgres10
ContainerImageTag:
Description: The tag to use for all container images.
Type: String
Default: master
SnapshotIdentifier:
Description: identifier of snapshot to create db from
Type: String
ClientSecret:
Description: Client secret for oauth
Type: String
DjangoSecretKey:
Description: DjangoSecret Key
Type: String
LastForce:
Description: last time services were forced to update
Type: String
RedisHostType:
Description: size of Redis nodes.
Type: String
Default: cache.t3.small
RedisVersion:
Description: pin the version of redis
Type: String
Default: 5.0.0
AwsAccessKey:
Type: String
AwsSecretKey:
Type: String
IsDebug:
Type: String
Default: true
SwaggerEnabled:
Type: String
Default: false
SolvestackOrgId:
Type: String
Default: CHANGEME
S3MediaBucketName:
Type: String
PrimaryURL:
Type: String
Cert:
Description: Certificate ARN to use, default is solvestack.com
Type: String
Default: arn:aws:acm:us-west-2:461537903867:certificate/c9a515ad-f143-49ff-a37d-dbea79b04b0b
CentralLoggingURL:
Type: String
Default: None
ClusterSize:
Type: String
Default: 3
APIDesiredCount:
Type: String
APIMaxCount:
Type: String
WorkerDesiredCount:
Type: String
WorkerMaxCount:
Type: String
SubString:
Type: String
ElasticSearchClusterUrl:
Type: String
Default: None
ElasticSearchClusterCA:
Type: String
Default: None
SlackToken:
Type: String
Default: None
SlackChannel:
Type: String
DataInsightsEmail:
Type: String
Default: system.accruent.data-insights@solvestack.com
DataInsightsPassword:
Type: String
Default: None
DataInsightsUrl:
Type: String
Default: https://di-api.accruent.com
DataInsightsUIUrl:
Type: String
Default: https://di.accruent.com
DataInsightsIsEnabled:
Type: String
Default: true
ReportWorkersCount:
Type: String
Default: 1
MigrationWorkerCount:
Type: String
Default: 0
ReportingBackend:
Type: String
Default: solvestack
Conditions:
IsProduction:
Fn::Equals:
- Ref: AWS::StackName
- prod
ElasticSearchClusterUnset:
Fn::Equals:
- Ref: ElasticSearchClusterUrl
- None
UseElasticSearchCluster:
Fn::Not:
- Condition: ElasticSearchClusterUnset
DisableMigrationWorkers:
Fn::Equals:
- Ref: MigrationWorkerCount
- 0
EnableMigrationWorkers:
Fn::Not:
- Condition: DisableMigrationWorkers
Resources:
VPC:
Type: AWS::CloudFormation::Stack
Properties:
TemplateURL: https://s3.us-west-2.amazonaws.com/solvestack-prod-cloudformation/002303ad4a24475d9b2849a0333faafa.template
Parameters:
EnvironmentName:
Ref: AWS::StackName
VpcCIDR:
Ref: VpcCIDR
PublicSubnet1CIDR:
Fn::Select:
- 0
- Ref: PublicSubnet
PublicSubnet2CIDR:
Fn::Select:
- 1
- Ref: PublicSubnet
PublicSubnet3CIDR:
Fn::Select:
- 2
- Ref: PublicSubnet
PrivateSubnet1CIDR:
Fn::Select:
- 0
- Ref: PrivateSubnet
PrivateSubnet2CIDR:
Fn::Select:
- 1
- Ref: PrivateSubnet
PrivateSubnet3CIDR:
Fn::Select:
- 2
- Ref: PrivateSubnet
SecurityGroups:
Type: AWS::CloudFormation::Stack
Properties:
TemplateURL: https://s3.us-west-2.amazonaws.com/solvestack-prod-cloudformation/a7d88d3819e83bfd58cc80a0552dd1e0.template
Parameters:
EnvironmentName:
Ref: AWS::StackName
VPC:
Fn::GetAtt:
- VPC
- Outputs.VPC
CentralVPNSecurityGroup:
Ref: CentralVPNSecurityGroup
VpcCIDR:
Ref: VpcCIDR
ALB:
Type: AWS::CloudFormation::Stack
Properties:
TemplateURL: https://s3.us-west-2.amazonaws.com/solvestack-prod-cloudformation/222e802fa9be1c4d7ee488c7b8541d88.template
Parameters:
EnvironmentName:
Ref: AWS::StackName
Cert:
Ref: Cert
VPC:
Fn::GetAtt:
- VPC
- Outputs.VPC
Subnets:
Fn::GetAtt:
- VPC
- Outputs.PublicSubnets
SecurityGroup:
Fn::GetAtt:
- SecurityGroups
- Outputs.LoadBalancerSecurityGroup
PrivateSecurityGroup:
Fn::GetAtt:
- SecurityGroups
- Outputs.PrivateLoadBalancerSecurityGroup
POSTGRESQL:
Type: AWS::CloudFormation::Stack
Properties:
TemplateURL: https://s3.us-west-2.amazonaws.com/solvestack-prod-cloudformation/3af82c25520c93196c4c772b3f3fc8e9.template
Parameters:
EnvironmentName:
Ref: AWS::StackName
DatabaseUsername:
Ref: DatabaseUsername
DatabasePassword:
Ref: DatabasePassword
DbParameterGroup:
Ref: DbParameterGroup
Subnets:
Fn::GetAtt:
- VPC
- Outputs.PublicSubnets
SecurityGroup:
Fn::GetAtt:
- SecurityGroups
- Outputs.RDSSecurityGroup
SnapshotIdentifier:
Ref: SnapshotIdentifier
HostedZoneId: Z3UG1K4CTXT0KD