Skip to content

Commit 5004ab3

Browse files
committed
fix cfn
1 parent c2c5fcc commit 5004ab3

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

cloudformation/custom-domain.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ Parameters:
99
Type: String
1010
CloudfrontDomain:
1111
Type: String
12+
GWHostedZoneId:
13+
Description: Hosted Zone ID
14+
Type: String
1215

1316
Conditions:
1417
IsDev: !Equals [!Ref RunEnvironment, 'dev']

cloudformation/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ Resources:
117117
- ApiGwConfig
118118
- !Ref RunEnvironment
119119
- EnvDomainName
120+
GWHostedZoneId:
121+
!FindInMap [ApiGwConfig, !Ref RunEnvironment, HostedZoneId]
120122
CloudfrontDomain: !GetAtt [AppIcalCloudfrontDistribution, DomainName]
121123

122124
CoreUrlProd:
@@ -130,6 +132,8 @@ Resources:
130132
- ApiGwConfig
131133
- !Ref RunEnvironment
132134
- EnvDomainName
135+
GWHostedZoneId:
136+
!FindInMap [ApiGwConfig, !Ref RunEnvironment, HostedZoneId]
133137
CloudfrontDomain: !GetAtt [AppFrontendCloudfrontDistribution, DomainName]
134138

135139
AppLambdaUrl:
@@ -919,6 +923,8 @@ Resources:
919923
- ApiGwConfig
920924
- !Ref RunEnvironment
921925
- EnvDomainName
926+
GWHostedZoneId:
927+
!FindInMap [ApiGwConfig, !Ref RunEnvironment, HostedZoneId]
922928
CloudfrontDomain: !GetAtt [AppLinkryCloudfrontDistribution, DomainName]
923929

924930
Outputs:

0 commit comments

Comments
 (0)