Skip to content

Commit 46533f6

Browse files
committed
fix record set
1 parent 7def57f commit 46533f6

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

cloudformation/main.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,11 @@ Resources:
118118
- ApiGwConfig
119119
- !Ref RunEnvironment
120120
- EnvDomainName
121-
Type: CNAME
122-
TTL: '300'
123-
ResourceRecords:
124-
- !GetAtt [AppLinkryCloudfrontDistribution, DomainName]
121+
Type: A
122+
AliasTarget:
123+
HostedZoneId: Z2FDTNDATAQYW2
124+
DNSName: !GetAtt [AppLinkryCloudfrontDistribution, DomainName]
125+
EvaluateTargetHealth: false
125126

126127
IcalRecordSet:
127128
Type: AWS::Route53::RecordSet
@@ -134,10 +135,11 @@ Resources:
134135
- ApiGwConfig
135136
- !Ref RunEnvironment
136137
- EnvDomainName
137-
Type: CNAME
138-
TTL: '300'
139-
ResourceRecords:
140-
- !GetAtt [AppIcalCloudfrontDistribution, DomainName]
138+
Type: A
139+
AliasTarget:
140+
HostedZoneId: Z2FDTNDATAQYW2
141+
DNSName: !GetAtt [AppIcalCloudfrontDistribution, DomainName]
142+
EvaluateTargetHealth: false
141143

142144
CoreRecordSet:
143145
Type: AWS::Route53::RecordSet
@@ -150,10 +152,11 @@ Resources:
150152
- ApiGwConfig
151153
- !Ref RunEnvironment
152154
- EnvDomainName
153-
Type: CNAME
154-
TTL: '300'
155-
ResourceRecords:
156-
- !GetAtt [AppFrontendCloudfrontDistribution, DomainName]
155+
Type: A
156+
AliasTarget:
157+
HostedZoneId: Z2FDTNDATAQYW2
158+
DNSName: !GetAtt [AppFrontendCloudfrontDistribution, DomainName]
159+
EvaluateTargetHealth: false
157160

158161
AppLambdaUrl:
159162
Type: AWS::Lambda::Url

0 commit comments

Comments
 (0)