Skip to content

Commit 778af13

Browse files
committed
use regional domain name for s3 bucket in cf distribution
1 parent 50d2a7a commit 778af13

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)