Skip to content

Commit

Permalink
Merge pull request #2 from EPAM-JS-Competency-center/task2-cf-issue
Browse files Browse the repository at this point in the history
CloudFront issue with S3 buckets on different regions
  • Loading branch information
Ilya-Valasiuk authored Apr 10, 2021
2 parents 05ca160 + c604116 commit f5749cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ resources:
Properties:
DistributionConfig:
Origins:
- DomainName: ${self:custom.s3BucketName}.s3.amazonaws.com
- DomainName: !GetAtt WebAppS3Bucket.RegionalDomainName
## An identifier for the origin which must be unique within the distribution
Id: myS3Origin
## In case you don't want to restrict the bucket access use CustomOriginConfig and remove S3OriginConfig
Expand Down

0 comments on commit f5749cf

Please sign in to comment.