gio
04/07/2022, 7:51 AMnew s3deploy.BucketDeployment(this, 'core-bucket-deployment', {
sources: [s3deploy.Source.asset('./backend/assets/core-bucket')],
destinationBucket: this.core_bucket.s3Bucket,
});
It works nice but I have a problem about permission, because some of these file (example app-logo.png) I want it with public permission but I can’t find a way to set permission on file.
Probably S3Deployment is not a right way to solve my need.
Do you know some solution? Actually I think the only solution is to use aws-sdk after cdk bucket creation, to manually set permission on files loaded with S3Deployment, or directly upload that files through sdk.Ross Coundon
04/07/2022, 8:14 AMgio
04/07/2022, 8:18 AMFrank
Frank
s3deploy.BucketDeployment
constructs uploading to the same bucket with different accessControl
settings.