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.
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?
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.