google_migration_center_group

A resource that represents an asset group. The purpose of an asset group is to bundle a set of assets that have something in common, while allowing users to add annotations to the group.

Open in Cloud Shell

Example Usage - Migration Group Basic

resource "google_migration_center_group" "default" {
  location     = "us-central1"
  group_id     = "group-test"
  description  = "Terraform integration test description"
  display_name = "Terraform integration test display"
  labels       = {
    key = "value"
  }
}

Argument Reference

The following arguments are supported:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

Group can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import Group using one of the formats above. For example:

import {
  id = "projects/{{project}}/locations/{{location}}/groups/{{group_id}}"
  to = google_migration_center_group.default
}

When using the terraform import command, Group can be imported using one of the formats above. For example:

$ terraform import google_migration_center_group.default projects/{{project}}/locations/{{location}}/groups/{{group_id}}
$ terraform import google_migration_center_group.default {{project}}/{{location}}/{{group_id}}
$ terraform import google_migration_center_group.default {{location}}/{{group_id}}

User Project Overrides

This resource supports User Project Overrides.