Skip to content

Data Source: azurermContainerRegistryScopeMap

Use this data source to access information about an existing Container Registry scope map.

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.*/
const dataAzurermContainerRegistryScopeMapExample =
  new azurerm.dataAzurermContainerRegistryScopeMap.DataAzurermContainerRegistryScopeMap(
    this,
    "example",
    {
      container_registry_name: "example-registry",
      name: "example-scope-map",
      resource_group_name: "example-resource-group",
    }
  );
new cdktf.TerraformOutput(this, "actions", {
  value: dataAzurermContainerRegistryScopeMapExample.actions,
});

Argument Reference

  • name - The name of the Container Registry token.
  • containerRegistryName - The Name of the Container Registry where the token exists.
  • resourceGroupName - The Name of the Resource Group where this Container Registry token exists.

Attributes Reference

The following attributes are exported:

  • id - The Container Registry scope map ID.

  • actions - The actions for the Scope Map.

Timeouts

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

  • read - (Defaults to 5 minutes) Used when retrieving the Container Registry scope map.