Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - import s3deploy = require('@aws-cdk/aws-s3-deployment');
 - const appBucket = new s3.Bucket(this, 'assets');
 - new s3deploy.BucketDeployment(this, 'DeployFiles', {
 - sources: [s3deploy.Source.asset('./assets')],
 - destinationBucket: appBucket,
 - });
 - new cdk.CfnOutput(this, 'AppBucket', {
 - value: appBucket.bucketName
 - });
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment