PRODUCTS & SERVICES

4 methods to easily switch AWS accounts

Sep 19, 2023

Experts from CMC Telecom share methods to quickly and easily convert resources between two different AWS accounts for businesses.

Infrastructure transformation

Enterprises can use either of the following two approaches to transform infrastructure that includes resources running workflows that do not have persistent data storage. For example, Lambda functions, Amazon Elastic Container Service clusters, Elastic Load Balancer…


Transform infrastructure using IaC

Method 1: Use AWS CloudFormation. AWS CloudFormation allows users to deploy AWS services and resources using templates in YAML or JSON code. Businesses can use existing AWS CloudFormation templates and import them into target accounts.

Method 2: Use Former2. Former2 is a tool that allows users to encode services in their AWS infrastructure into templates. From there, users can use these templates to deploy those resources in the account they want to move to.

Transform computing resources

To convert EC2 virtual servers with persistent data stored in EBSs, businesses can use the AWS Backup method and share Amazon Machine Image (AMI).


Transform computing resources

Using AWS Backup, this is a centralized and automated data management service across AWS services, in the Cloud and on-premises. Therefore, users can configure backup policies and monitor the activities of resources on AWS. AWS Backup’s cross-account management feature helps manage, monitor, and restore backups between AWS accounts. CMC Telecom experts also note that it is necessary to ensure that both accounts belong to the same AWS Organization.

When using method 2 of sharing Amazon Machine Image (AMI), businesses can create an Amazon Machine Image (AMI) from EC2 instances and share it with the target account. Then, create a new EC2 instance in the target account from the shared AMI. CMC Telecom experts recommend that businesses can use one AMI for multiple instances if they want them to have the same configuration or use different AMIs to create instances with different configurations.

Switch hosting services

AWS provides a variety of storage services including: object storage – Amazon S3, file storage – Amazon EFS, block storage – Amazon EBS. To move objects from S3 bucket, users can perform the following methods.


Convert S3 Buckets

Method 1: Use Amazon S3 CLI commands to copy existing objects from the source account to the destination account. Once the initial objects have been migrated over, businesses can enable S3 replication so that changes are continuously replicated between accounts.

Method 2: If the S3 bucket contains too many objects, the business will have to use S3 Batch operations to copy the objects to the destination account. To migrate data from Amazon EBS, users can create snapshots of the EBSs they want to convert and share these snapshots to the destination account. Then, in the target account, the business will create a new EBS from the previously shared snapshot.


Amazon EBS conversion

Businesses can move files from Amazon EFS between accounts by using the AWS DataSync agent to convert data from EFS in one account to EFS in another account. AWS DataSync is an online transfer service that replicates and synchronizes large amounts of data between on-premises storage systems and AWS storage services.


Amazon EFS Conversion

Database conversion

AWS provides engines with different database services such as: Amazon RDS, Amazon DynamoDB and Amazon Redshift. These include: relational databases, key-value databases, document databases, in-memory databases, graph databases, and time-series databases. To migrate a relational database, businesses can choose one of the following methods.


Convert relational databases

Method 1: Use AWS Database Migration Service (AWS DMS). Businesses can use AWS Database Migration Service (AWS DMS) to continuously replicate data across AWS accounts with high availability. The source database remains functional throughout the migration process, minimizing downtime of database-based applications. AWS DMS is a service that helps optimize the migration of relational databases, data warehouses, NoSQL databases, and other data types.

Method 2: Use RDS Snapshots. This way, businesses can also create and share database backups across AWS accounts; Use these snapshots to create RDS instances in the target account.

Method 3: Use AWS Backup. This is intended to create automatic data backup policies for AWS resources. Use AWS Backup cross-management to manage and monitor backup, restore, and replication jobs between AWS accounts. Once backups are in the target account, businesses can restore RDS instances from those backups.

In Vietnam, CMC Telecom is a premium service partner of AWS. CMC Telecom is recognized and certified by AWS for its capacity and professional experience to meet the needs of AWS Cloud services and solutions for large businesses. In August 2023, this business became an AWS Migration Competency partner. This is an important step demonstrating CMC Telecom’s ability to provide infrastructure migration services to the AWS cloud platform.