reference deployment

Migration Hub Refactor Spaces on AWS—Terraform module

Deploys a Strangler-fig Refactor environment in the AWS Cloud

This Amazon Web Services (AWS) Solution is used to deploy AWS Migration Hub Refactor Spaces components in the AWS Cloud. Common deployment examples can be found in examples. The solution is for users who want to deploy Refactor Spaces environments and modernize applications to microservices. Refactor Spaces helps reduce the undifferentiated heavy lifting of building and operating AWS infrastructure for incremental refactoring.

AWS logo

This solution was developed by AWS.

  •  What you'll build
  • This solution sets up the following:

    • A highly available architecture that spans two Availability Zones.* 
    • In one virtual private cloud (VPC):    
      • Private subnets containing an AWS Transit Gateway attachment. Amazon API Gateway uses this attachment to communicate with workloads deployed in other AWS accounts/VPCs.*
      • A Network Load Balancer, which uses the VPC link feature and distributes incoming traffic.*
    • In the second VPC:
      • Private subnets, which contain an Amazon Elastic Compute Cloud (Amazon EC2) instance that hosts the monolithic Unistore legacy application. Each subnet also contains an AWS Transit Gateway attachment, which is used to provide private connectivity between the API Gateway and the application hosted within the VPC.*
      • An Application Load Balancer to forward traffic to the Amazon EC2 instances.*
    • In the AWS Migration Hub's Refactor Spaces environment:
      • AWS Transit Gateway, provisioned and managed by AWS Migration Hub's Refactor Spaces. If you choose to bring your own AWS Transit Gateway, this can be controlled using an optional input parameter.
      • A Refactor Spaces application that manages Amazon API Gateway and two services: Default and AddtoCart. Default acts as the default route for traffic to the Unistore application. AddtoCart sends AddtoCart domain requests to the AWS Lambda function.
    • A Lambda function that holds the modernized AddToCart business logic strangled from the Unistore application.

    *The Terraform module that deploys this solution does not include the components marked by asterisks. These components, which you would provide as inputs, are depicted to illustrate a real-world deployment scenario.

  •  Costs and licenses
  • You pay for the cost of the Refactor Spaces feature and any resources being consumed on AWS. For more information, refer to AWS Migration Hub pricing.

    You are responsible for the cost of the AWS services and any third-party licenses used while running this solution. There is no additional cost for using the solution.

    This solution includes configuration parameters that you can customize. Some of these settings, such as instance type, affect the cost of deployment. For cost estimates, refer to the pricing pages for each AWS service you use. Prices are subject to change.

    Tip: After you deploy a solution, create AWS Cost and Usage Reports to track associated costs. These reports deliver billing metrics to an Amazon Simple Storage Service (Amazon S3) bucket in your account. They provide cost estimates based on usage throughout each month and aggregate the data at the end of the month. For more information, refer to What are AWS Cost and Usage Reports?