-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstances-OpenData.var.yml
70 lines (66 loc) · 2.47 KB
/
instances-OpenData.var.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
---
# Amazon Linux 2023: al2023-ami-2023.4.20240611.0-kernel-6.1-x86_64
common_stack: &common_stack
state: "{{ state | default('present')}}"
region: "{{ region }}"
disable_rollback: true
template: "templates/Datashades-OpsWorks-CKAN-Instances.cfn.yml"
template_jinja: "templates/Datashades-OpsWorks-CKAN-Instances.cfn.yml.j2"
template_parameters: &common_stack_template_parameters
ApplicationName: "{{ service_name }}"
ApplicationId: "{{ service_name_lower }}"
WebEC2Size: t3a.medium
BatchEC2Size: t3a.medium
AppSubnets: "{{ Environment }}CKANAppSubnet"
EnableDataStore: "{{ enable_datastore | default('no') }}"
DefaultEC2Key: "{{ lookup('aws_ssm', '/config/CKAN/ec2KeyPair', region=region) }}"
BatchImageId: "{{ lookup('aws_ssm', '/config/CKAN/' + Environment + '/app/' + service_name_lower + '/BatchAmiId') | default(base_ami, True) }}"
WebImageId: "{{ lookup('aws_ssm', '/config/CKAN/' + Environment + '/app/' + service_name_lower + '/WebAmiId') | default(base_ami, True) }}"
SolrImageId: "{{ lookup('aws_ssm', '/config/CKAN/' + Environment + '/app/' + service_name_lower + '/SolrAmiId') | default(base_ami, True) }}"
tags: &common_stack_tags
Environment: "{{ Environment }}"
Service: "{{ service_name }}"
Division: "{{ Division }}"
Owner: "{{ Owner }}"
Version: "1.0"
cloudformation_stacks:
- <<: *common_stack
name: "{{ service_name }}-PROD-OpsWorks-instances"
template_parameters:
<<: *common_stack_template_parameters
Environment: PROD
SolrEC2Size: t3a.medium
WebEC2Count: 5
tags:
<<: *common_stack_tags
PowerManaged: "No"
- <<: *common_stack
name: "{{ service_name }}-STAGING-OpsWorks-instances"
template_parameters:
<<: *common_stack_template_parameters
Environment: STAGING
SolrEC2Size: t3a.medium
tags:
<<: *common_stack_tags
PowerManaged: "Yes"
- <<: *common_stack
name: "{{ service_name }}-TRAINING-OpsWorks-instances"
template_parameters:
<<: *common_stack_template_parameters
Environment: TRAINING
SolrEC2Size: t3a.small
SolrEC2Count: 1
tags:
<<: *common_stack_tags
PowerManaged: "Yes"
- <<: *common_stack
name: "{{ service_name }}-DEV-OpsWorks-instances"
template_parameters:
<<: *common_stack_template_parameters
Environment: DEV
WebEC2Count: 1
SolrEC2Size: t3a.small
SolrEC2Count: 1
tags:
<<: *common_stack_tags
PowerManaged: "No"