Skip to content

Commit 607c648

Browse files
committed
update cfn
1 parent 1c371f2 commit 607c648

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

cloudformation/main.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,10 @@ Resources:
306306
LinkryCustomDomainName:
307307
Type: AWS::ApiGateway::DomainName
308308
Properties:
309-
CertificateArn: !FindInMap [ApiGwConfig, !Ref RunEnvironment, LinkryApiCertificateArn]
309+
RegionalCertificateArn: !FindInMap [ApiGwConfig, !Ref RunEnvironment, LinkryApiCertificateArn]
310+
EndpointConfiguration:
311+
Types:
312+
- REGIONAL
310313
DomainName: !Sub
311314
- "go.${BaseDomainName}"
312315
- BaseDomainName: !FindInMap
@@ -328,5 +331,17 @@ Resources:
328331
- LinkryApiDomainName
329332
Type: A
330333
AliasTarget:
331-
DNSName: !GetAtt LinkryCustomDomainNameDev.RegionalDomainName
332-
HostedZoneId: !GetAtt LinkryCustomDomainNameDev.RegionalHostedZoneId
334+
DNSName: !GetAtt LinkryCustomDomainName.RegionalDomainName
335+
HostedZoneId: !GetAtt LinkryCustomDomainName.RegionalHostedZoneId
336+
337+
LinkryApiMapping:
338+
Type: 'AWS::ApiGatewayV2::ApiMapping'
339+
Properties:
340+
DomainName: !Sub
341+
- "go.${BaseDomainName}"
342+
- BaseDomainName: !FindInMap
343+
- ApiGwConfig
344+
- !Ref RunEnvironment
345+
- LinkryApiDomainName
346+
ApiId: !Ref AppApiGateway
347+
Stage: default

0 commit comments

Comments
 (0)