Skip to content
Discussion options

You must be logged in to vote

Unfortunately, you cannot modify imported resources. See our documentation here for more info.

If you wish to modify an existing bucket through CDK, I think the only way would be with a CustomResource of your own to run the logic you want to, or AwsCustomResource to easily make use of an SDK call. Keep in mind that if the bucket is in another account you'll need to properly configure permissions to allow for that

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by peterwoodworth
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants