forked from theonestack/hl-component-aurora-mysql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaurora-mysql.cfhighlander.rb
43 lines (34 loc) · 1.69 KB
/
aurora-mysql.cfhighlander.rb
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
CfhighlanderTemplate do
Name 'aurora-mysql'
DependsOn 'vpc'
DependsOn 'lib-iam'
Parameters do
ComponentParam 'EnvironmentName', 'dev', isGlobal: true
ComponentParam 'EnvironmentType', 'development', isGlobal: true, allowedValues: ['development', 'production']
ComponentParam 'StackOctet', isGlobal: true
ComponentParam 'NetworkPrefix', '10', isGlobal: true
ComponentParam 'DnsDomain'
ComponentParam 'SnapshotID'
ComponentParam 'ScalableTargetMinCapacity'
ComponentParam 'ScalableTargetMaxCapacity'
if engine_mode == 'provisioned'
ComponentParam 'WriterInstanceType'
ComponentParam 'ReaderInstanceType'
ComponentParam 'EnableReader', 'false'
end
if engine_mode == 'serverless'
ComponentParam 'MaxCapacity', 2, allowedValues: [1, 2, 4, 8, 16, 32, 64, 128, 256]
ComponentParam 'MinCapacity', 2, allowedValues: [1, 2, 4, 8, 16, 32, 64, 128, 256]
ComponentParam 'EnableHttpEndpoint', 'false', allowedValues: ['true', 'false']
end
ComponentParam 'KmsKeyId' if defined? kms_key_id
ComponentParam 'VPCId', type: 'AWS::EC2::VPC::Id'
ComponentParam 'SubnetIds', type: 'CommaDelimitedList'
ComponentParam 'EnablePerformanceInsights', defined?(performance_insights) ? performance_insights : false
ComponentParam 'PerformanceInsightsRetentionPeriod', defined?(performance_insights) && defined?(insights_retention) ? insights_retention.to_i : 7
ComponentParam 'NamespaceId' if defined? service_discovery
ComponentParam 'EnableReplicaAutoScaling', 'false'
ComponentParam 'EnableCloudwatchLogsExports', defined?(log_exports) ? log_exports : ''
ComponentParam 'EnableLocalWriteForwarding', 'false'
end
end