-
ENV: Node 18 / AWS CDK 2.104.0 Based on the responses to #10348, I am using AwsCustomResource to configure S3 Replication on an existing I use the following construct:
Which I employ like this:
The CDK synth step works fine, however if I run a deploy I encounter the following error during:
Currently the source bucket has a fairly open permission policy in order to see if that makes any difference whilst deploying the stack with the above construct. I have also tried to 'loosen' the policy for the above AwsCustomResource, but both to no avail. Additionally using the following replication rule
I have been wrecking my brain over this. It must be something (obvious) I am overlooking ... any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Okay so I found a solution for my problem, just in case someone else is running into the same: In Stack A, I create a property of type CfnBucket that can be consumed by another stack, like so.
Stack B:
Which now allows me to use it this way when deploying Stack B:
Maybe not the most elegant, but it works..... moving on ;) |
Beta Was this translation helpful? Give feedback.
Okay so I found a solution for my problem, just in case someone else is running into the same:
In Stack A, I create a property of type CfnBucket that can be consumed by another stack, like so.
Stack B: