ops0ops0

Replicate Projects

Replicate an existing IaC project to a different cloud provider, region, or account. The Replication Wizard handles cross-cloud resource mapping, variable transformation, and backend configuration so you don't have to rewrite Terraform from scratch.

Use Cases

ScenarioExample
Multi-cloudReplicate an AWS project to GCP for redundancy
Disaster recoveryCopy production infrastructure to a DR region
Environment cloningReplicate production to create a staging environment
Cloud migrationMove infrastructure from one provider to another

Supported Cloud Providers

ProviderAs SourceAs Target
AWSYesYes
GCPYesYes
AzureYesYes
Oracle CloudYesYes

Cross-cloud replication is supported in any direction (e.g., AWS → GCP, Azure → Oracle Cloud).


Replication Wizard

Select Source Project

Navigate to IaC → Projects, open the project you want to replicate, and click Replicate.

Choose Target Cloud

Select the target cloud provider. ops0 displays the available integrations for that provider.

Select Integration

Choose the cloud integration (credentials) for the target environment.

Configure Backend

Set up the Terraform state backend for the new project:

BackendConfiguration
S3Bucket, key, region, optional DynamoDB table
GCSBucket, prefix
Azure BlobResource group, storage account, container, key

Review Variable Transformations

ops0 automatically maps variables to the target cloud:

TransformationExample
Region mappingus-east-1us-central1 (GCP)
Instance typest3.mediume2-medium (GCP)
Resource prefixesaws-gcp- in naming

Override any transformed values before proceeding.

Configure GitHub (Optional)

Set up GitHub sync for the new project — choose repository, path, and branch.

Review Policy Groups

Select which policy groups to attach to the replicated project. Groups from the source are pre-selected but can be toggled.

Review Cost Estimate

The Replication Cost Assistant shows estimated monthly costs for the target environment before you proceed.

Create

Click Create to generate the replicated project with transformed Terraform code.


What Gets Replicated

IncludedDescription
Terraform codeAll .tf files with cloud-specific transformations
VariablesMapped and transformed for target cloud
Variable definitionsTypes, descriptions, and sensitivity flags
Policy groupsOptional — select which groups to carry over
GitHub configOptional — configure new repo path
Not IncludedWhy
State fileNew project starts with empty state
Deployment historyFresh project, clean history
SecretsMust be re-configured for security

Cross-Cloud Transformations

When replicating across cloud providers, ops0 automatically transforms resource references.

Region Mapping

AWSGCPAzureOracle Cloud
us-east-1us-central1eastusus-ashburn-1
us-west-2us-west1westus2us-phoenix-1
eu-west-1europe-west1westeuropeeu-frankfurt-1
ap-southeast-1asia-southeast1southeastasiaap-singapore-1

Instance Type Mapping

AWSGCPAzureOracle Cloud
t3.microe2-microStandard_B1sVM.Standard.E4.Flex (1 OCPU)
t3.smalle2-smallStandard_B1msVM.Standard.E4.Flex (1 OCPU)
t3.mediume2-mediumStandard_B2sVM.Standard.E4.Flex (2 OCPU)
t3.largee2-standard-2Standard_B2msVM.Standard.E4.Flex (2 OCPU)
m5.xlargen2-standard-4Standard_D4s_v3VM.Standard.E4.Flex (4 OCPU)

Resource Name Prefixes

ops0 replaces cloud-specific prefixes in resource names:

  • aws-gcp-azure-oci-

After Replication

Review Generated Code

Open the new project and review the transformed Terraform files.

Configure Secrets

Add any sensitive values (API keys, passwords) that weren't carried over.

Run Plan

Execute a Terraform plan to verify the code is valid for the target cloud.

Deploy

Apply the infrastructure when you're satisfied with the plan output.