1×
Become a member
to unlock all features
Autoplay

    Use a bucket deployment to upload a file to S3 when deploying a CDK stack

    awsAWS

    Instead of uploading the files manually through the AWS console, a better solution would be to automatically upload the asset directory (or any other directory we'd like to upload) whenever we deploy our stack. After all, with CDK we'd like to reduce the manual work to minimum and focus on building an architecture and solving our problems.

    In this lesson we're going to learn how to use the aws-s3-deployment construct in order to upload an assets directory to an s3 bucket automatically whenever we deploy the CDK stack.