1 Answer
- Newest
- Most votes
- Most comments
1
You are unable to have multiple stacks manage the same resource, each resource must be maintained by a single stack. For this reason you would need to use the nested stack construct where your table exists in the parent stack and other resources in the child stacks can access it.
Alternatively, you can access resources which belong in other stacks but managing these can become cumbersome. More info here: resource_stack
Relevant content
- Accepted Answerasked 8 months ago
- asked 10 months ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 7 months ago
Could you please add an example of how your current stacks are organized? You can share a resource between the stacks by just providing that resource as a reference, see e.g. this documentation: https://docs.aws.amazon.com/cdk/v2/guide/resources.html#resource_stack