-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
175 additions
and
882 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,30 @@ This sample creates\updates several distinct groups of resources: | |
| [m4ce_gmanaged_service_account](outputs.tf#L15) | Google managed service account created automatically during the migrate connector registration.. It is used by M4CE to perform activities on target projects. | | | ||
|
||
<!-- END TFDOC --> | ||
|
||
## Test | ||
|
||
```hcl | ||
module "test" { | ||
source = "./fabric/blueprints/cloud-operations/vm-migration/host-target-projects" | ||
project_create = { | ||
billing_account_id = "1234-ABCD-1234" | ||
parent = "folders/1234563" | ||
} | ||
migration_admin_users = ["user:[email protected]"] | ||
migration_viewer_users = ["user:[email protected]"] | ||
migration_target_projects = [module.test-target-project.name] | ||
depends_on = [ | ||
module.test-target-project | ||
] | ||
} | ||
module "test-target-project" { | ||
source = "./fabric/modules/project" | ||
billing_account = "1234-ABCD-1234" | ||
name = "test-target-project" | ||
project_create = true | ||
} | ||
# tftest modules=5 resources=24 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,3 +42,39 @@ This sample creates\update several distinct groups of resources: | |
<!-- END TFDOC --> | ||
## Manual Steps | ||
Once this blueprint is deployed the M4CE [m4ce_gmanaged_service_account](https://cloud.google.com/migrate/compute-engine/docs/5.0/how-to/target-sa-compute-engine#configuring_the_default_service_account) has to be configured to grant the access to the shared VPC and allow the deploy of Compute Engine instances as the result of the migration. | ||
|
||
## Test | ||
|
||
```hcl | ||
module "test" { | ||
source = "./fabric/blueprints/cloud-operations/vm-migration/host-target-sharedvpc" | ||
project_create = { | ||
billing_account_id = "1234-ABCD-1234" | ||
parent = "folders/1234563" | ||
} | ||
migration_admin_users = ["user:[email protected]"] | ||
migration_viewer_users = ["user:[email protected]"] | ||
migration_target_projects = [module.test-target-project.name] | ||
sharedvpc_host_projects = [module.test-sharedvpc-host-project.name] | ||
depends_on = [ | ||
module.test-target-project, | ||
module.test-sharedvpc-host-project, | ||
] | ||
} | ||
module "test-target-project" { | ||
source = "./fabric/modules/project" | ||
billing_account = "1234-ABCD-1234" | ||
name = "test-target-project" | ||
project_create = true | ||
} | ||
module "test-sharedvpc-host-project" { | ||
source = "./fabric/modules/project" | ||
billing_account = "1234-ABCD-1234" | ||
name = "test-sharedvpc-host-project" | ||
project_create = true | ||
} | ||
# tftest modules=7 resources=25 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,18 @@ This sample creates several distinct groups of resources: | |
| [m4ce_gmanaged_service_account](outputs.tf#L15) | Google managed service account created automatically during the migrate connector registration. It is used by M4CE to perform activities on target projects. | | | ||
|
||
<!-- END TFDOC --> | ||
|
||
## Test | ||
|
||
```hcl | ||
module "test" { | ||
source = "./fabric/blueprints/cloud-operations/vm-migration/single-project" | ||
project_create = { | ||
billing_account_id = "1234-ABCD-1234" | ||
parent = "folders/1234563" | ||
} | ||
migration_admin_users = ["user:[email protected]"] | ||
migration_viewer_users = ["user:[email protected]"] | ||
} | ||
# tftest modules=5 resources=20 | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.