1回答
- 新しい順
- 投票が多い順
- コメントが多い順
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
関連するコンテンツ
- 質問済み 6年前
- AWS公式更新しました 3年前
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