Skip to content

Commit f5749cf

Browse files
Merge pull request #2 from EPAM-JS-Competency-center/task2-cf-issue
CloudFront issue with S3 buckets on different regions
2 parents 05ca160 + c604116 commit f5749cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

serverless.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ resources:
6969
Properties:
7070
DistributionConfig:
7171
Origins:
72-
- DomainName: ${self:custom.s3BucketName}.s3.amazonaws.com
72+
- DomainName: !GetAtt WebAppS3Bucket.RegionalDomainName
7373
## An identifier for the origin which must be unique within the distribution
7474
Id: myS3Origin
7575
## In case you don't want to restrict the bucket access use CustomOriginConfig and remove S3OriginConfig

0 commit comments

Comments
 (0)