Skip to content

Commit 606e872

Browse files
committed
emerg: only deploy record set in dev environment
1 parent 8cc7fee commit 606e872

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cloudformation/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Parameters:
4040

4141
Conditions:
4242
IsProd: !Equals [!Ref RunEnvironment, "prod"]
43-
# IsDev: !Equals [!Ref RunEnvironment, "dev"]
43+
IsDev: !Equals [!Ref RunEnvironment, "dev"]
4444
ShouldAttachVpc: !Equals [true, !Ref VpcRequired]
4545

4646
Mappings:
@@ -108,6 +108,7 @@ Resources:
108108
MessageTimeout: !Ref SqsMessageTimeout
109109

110110
LinkryRecordSetv4:
111+
Condition: IsDev
111112
Type: AWS::Route53::RecordSet
112113
Properties:
113114
HostedZoneId: !FindInMap [ApiGwConfig, !Ref RunEnvironment, HostedZoneId]
@@ -125,6 +126,7 @@ Resources:
125126
EvaluateTargetHealth: false
126127

127128
LinkryRecordSetv6:
129+
Condition: IsDev
128130
Type: AWS::Route53::RecordSet
129131
Properties:
130132
HostedZoneId: !FindInMap [ApiGwConfig, !Ref RunEnvironment, HostedZoneId]
@@ -142,6 +144,7 @@ Resources:
142144
EvaluateTargetHealth: false
143145

144146
IcalRecordSetv4:
147+
Condition: IsDev
145148
Type: AWS::Route53::RecordSet
146149
Properties:
147150
HostedZoneId: !FindInMap [ApiGwConfig, !Ref RunEnvironment, HostedZoneId]
@@ -160,6 +163,7 @@ Resources:
160163

161164

162165
IcalRecordSetv6:
166+
Condition: IsDev
163167
Type: AWS::Route53::RecordSet
164168
Properties:
165169
HostedZoneId: !FindInMap [ApiGwConfig, !Ref RunEnvironment, HostedZoneId]
@@ -178,6 +182,7 @@ Resources:
178182

179183

180184
CoreRecordSetv4:
185+
Condition: IsDev
181186
Type: AWS::Route53::RecordSet
182187
Properties:
183188
HostedZoneId: !FindInMap [ApiGwConfig, !Ref RunEnvironment, HostedZoneId]
@@ -195,6 +200,7 @@ Resources:
195200
EvaluateTargetHealth: false
196201

197202
CoreRecordSetv6:
203+
Condition: IsDev
198204
Type: AWS::Route53::RecordSet
199205
Properties:
200206
HostedZoneId: !FindInMap [ApiGwConfig, !Ref RunEnvironment, HostedZoneId]

0 commit comments

Comments
 (0)