I have a stack
which was created using aws-cdk(python)
My stack resources are
Root stack:
1. redis cluster
2. ecs cluster
3. lambda function
4. s3 bucket
I want to refactor
this Root stack in such a way that i can have two seperate stacks
Common stack:
1. redis cluster
2. s3 bucket
Service stack:
1. ecs cluster
2. lambda function
Possible Solution:
I can delete Root stack and create 2
new stacks common stack
and service stack
Issue:
My Root Stack
is already deployed on PROD
and it contain some sensitive data
and some important services
If try to use the Possible Solution
which i mentioned above, it will effect my PROD
environment.
My Goal:
without effecting PROD
, I want to refactor Root stack
to other stacks like Common stack
and Service stack
Can anyone suggest a solution for this?
question from:
https://stackoverflow.com/questions/65926329/separating-resources-from-one-stack 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…