Skip to content

Data Source: azurermDatabaseMigrationService

Use this data source to access information about an existing Database Migration Service.

Example Usage

import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
new azurerm.provider.AzurermProvider(this, "azurerm", {
  features: [{}],
});
const dataAzurermDatabaseMigrationServiceExample =
  new azurerm.dataAzurermDatabaseMigrationService.DataAzurermDatabaseMigrationService(
    this,
    "example",
    {
      name: "example-dms",
      resource_group_name: "example-rg",
    }
  );
new cdktf.TerraformOutput(this, "azurerm_dms_id", {
  value: dataAzurermDatabaseMigrationServiceExample.id,
});

Argument Reference

The following arguments are supported:

  • name - (Required) Specify the name of the database migration service.

  • resourceGroupName - (Required) Specifies the Name of the Resource Group within which the database migration service exists

Attributes Reference

The following attributes are exported:

  • id - The ID of Database Migration Service.

  • location - Azure location where the resource exists.

  • subnetId - The ID of the virtual subnet resource to which the database migration service exists.

  • skuName - The SKU name of database migration service.

  • tags - A mapping of tags to assigned to the resource.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the API Management API.