Is there a good approach to create a copy of prod environment just for devs to debug a bug that couldn't be reproduced or is there any appropriate setup in multi-tenant situation with multiple databases and applications that are interconnected. Thinking of tool that can manage the stack cloning (eb has one) along with data copying and then run scripts inside servers to make adjustments to settings all in an automated way?

you can use blue-green deployment for this.

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.CNAMESwap.html

  • How would blue/green deployment allow to have connections to both instances in the same time? One acting as gateway to users and the other for devs only? – Daniel Johns Sep 13 at 10:17
  • I have attached a refrence url to my answer, i believe swapping CNAMES will do work in your case. – matesio Sep 13 at 10:33
  • I agree with that, but I need to hae 24/7 prod and where a bug can't be reproduced to have connections while he first instance is up to the second as well, not to redirect the traffic. – Daniel Johns Sep 13 at 12:22

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.