feat(s3): introduce a fromCfnBucket() method#20081
Conversation
|
I think the most interesting part of this PR is how to handle the Since it's the Policy that has the reference to the Bucket, and not the other way round, I've decided to not fill this property in I'm curious on the opinion of this solution. I could be convinced that we need to pass some sort of optional "template" property as the second argument to Let me know what you think @rix0rrr! |
|
To others, who might come across this PR, I am resolving the conflicts and making sure the tests pass. |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
This PR adds a new static method to the
Bucketclass in the S3 module,fromCfnBucket(), that allows creating an L2IBucketfrom aCfnBucketinstance.This is useful when migrating from CloudFormation to CDK.
All Submissions:
Adding new Unconventional Dependencies:
New Features
yarn integto deploy the infrastructure and generate the snapshot (i.e.yarn integwithout--dry-run)?By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license