Skip to main content
⏳ Estimated read time: 2 min read

Migrate IaC Between Clouds

For Platform and DevOps Engineers
note
  • StackGen supports migration only through an IaC file import.
  • appStack to cloud migration is possible for AWS, GCP, and Civo clouds.

You can migrate an existing infrastructure by translating your IaC from one cloud to another. Follow these steps:

  1. Click the + New appStack button.

  2. Select appStack for Cloud Migration.

    appStack for Cloud Migration

    note

    Ensure that your deployment files are saved in .tfstate or .json format.

  3. You can either drag your deployment file or click the Click to upload IaC files panel to upload your file and click Proceed.

    appStack for Cloud Migration

  4. Select the target cloud service that you would like to use and click Proceed.

    appStack for Cloud Migration

    note

    You can choose only one cloud service provider from the list.

  5. Choose the policies with which you want your IaC to comply, and click Proceed.

    appStack for Cloud Migration

    note
    • We recommend leaving all policies selected as they conform with best practices.
    • You will not be able to modify policies if a governance policy is assigned to an appStack security policy
    • Click View All to expand and view the list of policies available for your IaC.
    • You will also see the list of selected policies below the list of available policies.
    • You can use the search bar to search and select or unselect policies.
    • You will see a list of the custom policies on the Select Custom Policies tab. You can select the ones that apply to your IaC accordingly.
    • To upload your custom policies, please refer to the CLI Guide.
  6. You will see a list of the custom policies on the Select Custom Policies tab. This tab is visible only when your Admin enables selecting custom policies for your role. You can select the policies that apply to your IaC accordingly. To upload your custom policies, please refer to the CLI Guide.

    Custom Policy Example

    Custom Policies

  7. In the General Details section, enter the Name, Description, and Label.

    General Details

  8. Click the Create appStack button.

You'll be redirected to the appStacks page, where you can view the list of appStacks available.

Migrated Topology