Skip to content

Commit 9e65f0a

Browse files
authored
fix www subdomain (#32)
1 parent bd2def4 commit 9e65f0a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

aws-sam/gggtracker.cfn.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ Resources:
8282
DomainName: !Sub es.${DomainName}
8383
RestApiId: !Ref API
8484
Stage: !Ref APIStage
85+
APIBasePathMappingSubdomain7:
86+
Type: AWS::ApiGateway::BasePathMapping
87+
DependsOn: APISubdomainName7
88+
Properties:
89+
DomainName: !Sub www.${DomainName}
90+
RestApiId: !Ref API
91+
Stage: !Ref APIStage
8592
APICloudWatchRole:
8693
Type: AWS::IAM::Role
8794
Properties:
@@ -150,6 +157,14 @@ Resources:
150157
EndpointConfiguration:
151158
Types:
152159
- EDGE
160+
APISubdomainName7:
161+
Type: AWS::ApiGateway::DomainName
162+
Properties:
163+
CertificateArn: !Ref CertificateARN
164+
DomainName: !Sub www.${DomainName}
165+
EndpointConfiguration:
166+
Types:
167+
- EDGE
153168
APIProxyResource:
154169
Type: AWS::ApiGateway::Resource
155170
Properties:

0 commit comments

Comments
 (0)