Skip to content

Commit

Permalink
fix(cloudfront): allow IBucket as CloudFront source
Browse files Browse the repository at this point in the history
Change CloudFront WebDistribution S3 origin to allow IBucket instead of Bucket. Only the domainName property is used anyways. This allows buckets to be imported to the stack and used as an origin. (#1946)
  • Loading branch information
CarsonF authored and Sam Goodwin committed Mar 6, 2019
1 parent 7b3a30b commit 855f1f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-cloudfront/lib/web_distribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export interface S3OriginConfig {
/**
* The source bucket to serve content from
*/
readonly s3BucketSource: s3.Bucket,
readonly s3BucketSource: s3.IBucket,

/**
* The optional origin identity cloudfront will use when calling your s3 bucket.
Expand Down

0 comments on commit 855f1f5

Please sign in to comment.