Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
156 views
in Technique[技术] by (71.8m points)

amazon web services - Separating resources from one stack

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...