Aws-cdk: Assets: allow specifying destination bucket

Created on 4 Sep 2018  路  3Comments  路  Source: aws/aws-cdk

Brought up in #657: for use cases like uploading an asset directory to a website bucket, we should allow specifying the bucket when defining an asset.

@aws-cdassets feature-request

Most helpful comment

I'd like to add the note that the current code in https://github.com/awslabs/aws-cdk/blob/master/packages/aws-cdk/lib/assets.ts doesn't seem to perform any auto-detection of Content-Type based on filename extensions. I think it will be required to successfully deploy HTML/CSS/JS and other web assets.

All 3 comments

I'd like to add the note that the current code in https://github.com/awslabs/aws-cdk/blob/master/packages/aws-cdk/lib/assets.ts doesn't seem to perform any auto-detection of Content-Type based on filename extensions. I think it will be required to successfully deploy HTML/CSS/JS and other web assets.

Users can use s3-deployment to upload files to S3 buckets.

What about specifying a bucket for Lambda Function code?

Was this page helpful?
0 / 5 - 0 ratings