Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit a749dd4

Browse files
committed
changed custom origin domain name for s3 bucket domain name
1 parent 25c2996 commit a749dd4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ include:
1616
# - local: /gitlab-ci/aws/cloudformation.yml
1717
#- local: /gitlab-ci/gcp/terraform.yml
1818

19-
Pytest:
19+
.Pytest:
2020
image: python:3.8
2121
stage: test
2222
services:

awscdk/awscdk/cloudfront.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def __init__(
7171
),
7272
cloudfront.SourceConfiguration(
7373
custom_origin_source=cloudfront.CustomOriginConfig(
74-
domain_name=self.static_site_bucket.bucket_regional_domain_name,
74+
domain_name=f"{self.static_site_bucket.bucket_name}.s3-website-us-east-1.amazonaws.com",
7575
origin_protocol_policy=cloudfront.OriginProtocolPolicy.MATCH_VIEWER,
7676
),
7777
behaviors=[

0 commit comments

Comments
 (0)