Files
hunfabric/blueprints/cloud-operations/vm-migration/single-project/README.md
Julio Castillo c0bf32e797 Refactor service agent management (#2423)
* Service agents script

* Service agents update

* WIP

* Update script and terraform

* Fix tests

* Fix linter

* Update docs

* Bring back pf example inventory

* Fix tests

* Fix more tests

* Fix tests

* Use dataclasses for build_service_agents.py

* Remove unneeded field() from build_service_agents

* Re-enable CMEK depends_on in project outputs

* Update tools/requirements.txt

* Enable storage in GCS example projects

* Fix tests

* Add CMEK Service Agents dependencies for services

* Fix typos and data platform cmek

* More typos
2024-07-23 22:05:38 +02:00

3.4 KiB

M4CE(v5) - Single Project

This blueprint creates a simple M4CE (v5) environment deployed on a single host project.

The blueprint is designed for quick tests or product demos where it is required to setup a simple and minimal M4CE (v5) environment. It also includes the IAM wiring needed to make such scenarios work.

This is the high level diagram:

High-level diagram

Managed resources and services

This sample creates several distinct groups of resources:

Variables

name description type required default
migration_admin User or group who can create a new M4CE sources and perform all other migration operations, in IAM format (group:foo@example.com). string
migration_viewer User or group authorized to retrieve information about M4CE in the Google Cloud Console, in IAM format (group:foo@example.com). string null
project_create Parameters for the creation of the new project to host the M4CE backend. object({…}) null
project_name Name of an existing project or of the new project assigned as M4CE host an target project. string "m4ce-host-project-000"
vpc_config Parameters to create a simple VPC on the M4CE project. object({…}) {…}

Outputs

name description sensitive
m4ce_gmanaged_service_account Google managed service account created automatically during the migrate connector registration. It is used by M4CE to perform activities on target projects.

Test

module "test" {
  source = "./fabric/blueprints/cloud-operations/vm-migration/single-project"
  project_create = {
    billing_account_id = "1234-ABCD-1234"
    parent             = "folders/1234563"
  }
  migration_admin  = "user:admin@example.com"
  migration_viewer = "user:viewer@example.com"
}
# tftest modules=5 resources=27