Migrate using CloudFormation template

0

Is there an option to generate Elastic beanstalk, lambda functions, queue, and RDS to Cloud formation template from the existing account and import the template in the new Account?

I have generated all the above resources in former2 and tried to run in new account cloud formation getting too many errors, is that the correct way, or any other way is available to make it simple?

asked 16 days ago28 views
1 Answer
0

Former2 is your best option. It's meant to be a starting point for your CloudFormation template, to save time compared to writing from scratch, but it won't produce a perfect "black box". It doesn't replace having a good understanding of your template and debugging it unfortunately.

answered 15 days ago
  • Infrastructure as Code (IaC) is key. A typical workload will have CloudFormation templates (or CDK or Terraform) that are deployed in multiple environments e.g. Dev, Test, UAT and Prod accounts, without change. Only parameter values change so you're deploying tested and proven code to Production. Some templates, particularly more DevOps-focused ones, will be deployed across many if not all accounts in the Organization using StackSets - again it's the same template code.

    Templates are often written from scratch but tools like Former2 can be used too to do some legwork if you have some existing deployed resources you want to mimic. But then the template you've generated needs some major work, like working out what needs to change as you deploy across multiple environments, and ensuring this is driven by Parameters etc. And addition of lots of comments - which is one reason why you should use YAML and not JSON CloudFormation templates! :)

  • Thanks for the response, then how come big companies manage this type of requirement, if they have many Environments, will they set them up one by one manually? just I want to understand how they manage.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions