Bobcares

Migrate Elastic Beanstalk environment between AWS accounts

by | Aug 28, 2021

Are you looking for how to migrate the Elastic Beanstalk environment between AWS accounts? We can help you with this!

As a part of our AWS Support Services, we often receive similar requests from our AWS customers.

Today, let’s see the steps followed by our Support Techs to help our customers to migrate the Elastic Beanstalk environment.

 

 Migrate Elastic Beanstalk environment between AWS accounts

 
To migrate an Elastic Beanstalk environment between AWS accounts we must use saved configurations. The saved configurations are stored in the Amazon S3 bucket for Elastic Beanstalk in a folder named after our application.

For example:

s3://elasticbeanstalk-us-west-1-09876543210/resources/templates/our-app/

Here for the following steps, we consider Account X as the account where we have our Elastic Beanstalk environment and Account Y as the account that we want to migrate our Elastic Beanstalk Environment.
 

Creating saved configuration for Account X

 

  1. At first, we need to create a saved configuration in Account X.

2. Then from the following location, we need to download the saved configuration to our local machine:

s3://elasticbeanstalk-us-west-1-account-x-id/resources/templates/application-x-name/

Here, us-west-1: AWS Region where the Elastic Beanstalk environment is located in Account X.

account-x-id: Account ID of Account X.

application-x-name: Application name of Elastic Beanstalk application in Account X.

3. Now we can change the account-specific parameters like key pair name, subnet ID, etc. in the configuration file and then save the changes.
 

Creating Elastic Beanstalk environment using the saved configuration in Account Y

 

  1. Firstly, log in to Account Y.

2. Then we need to upload the saved configuration from our local machine to an S3 bucket in Account Y.

S3 path:

s3://elasticbeanstalk-us-west-2-account-y-id/resources/templates/application-y-name/

3. Now open the Elastic Beanstalk console and then select the AWS Region from Regions.

4. Then select Applications, and then select Create a new application.

5. Enter the name of the new application for the Application name. For example, account-y-name.

6. Select Saved configurations in the section for our new application. Here we can see all the saved configurations that have in the S3 bucket in a given Region.

7. Then select the saved configuration that we previously uploaded to the S3 bucket.

8. Finally, launch the Elastic Beanstalk environment.

 

[Need help with more AWS queries? We’d be happy to assist]

 

Conclusion

 
To sum up, today we discussed the steps followed by our Support Engineers to help our customers to migrate the Elastic Beanstalk environment between AWS accounts.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.