1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
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
Contenido relevante
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace 9 meses
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