Skip to content

azurermExpressRouteCircuitAuthorization

Manages an ExpressRoute Circuit Authorization.

Example Usage

/*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 azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
  this,
  "example",
  {
    location: "West Europe",
    name: "exprtTest",
  }
);
const azurermExpressRouteCircuitExample =
  new azurerm.expressRouteCircuit.ExpressRouteCircuit(this, "example_1", {
    allow_classic_operations: false,
    bandwidth_in_mbps: 50,
    location: azurermResourceGroupExample.location,
    name: "expressRoute1",
    peering_location: "Silicon Valley",
    resource_group_name: azurermResourceGroupExample.name,
    service_provider_name: "Equinix",
    sku: [
      {
        family: "MeteredData",
        tier: "Standard",
      },
    ],
    tags: {
      environment: "Production",
    },
  });
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermExpressRouteCircuitExample.overrideLogicalId("example");
const azurermExpressRouteCircuitAuthorizationExample =
  new azurerm.expressRouteCircuitAuthorization.ExpressRouteCircuitAuthorization(
    this,
    "example_2",
    {
      express_route_circuit_name: azurermExpressRouteCircuitExample.name,
      name: "exampleERCAuth",
      resource_group_name: azurermResourceGroupExample.name,
    }
  );
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermExpressRouteCircuitAuthorizationExample.overrideLogicalId("example");

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the ExpressRoute circuit. Changing this forces a new resource to be created.

  • resourceGroupName - (Required) The name of the resource group in which to create the ExpressRoute circuit. Changing this forces a new resource to be created.

  • expressRouteCircuitName - (Required) The name of the Express Route Circuit in which to create the Authorization. Changing this forces a new resource to be created.

Attributes Reference

The following attributes are exported:

  • id - The ID of the ExpressRoute Circuit Authorization.

  • authorizationKey - The Authorization Key.

  • authorizationUseStatus - The authorization use status.

Timeouts

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

  • create - (Defaults to 30 minutes) Used when creating the ExpressRoute Circuit Authorization.
  • update - (Defaults to 30 minutes) Used when updating the ExpressRoute Circuit Authorization.
  • read - (Defaults to 5 minutes) Used when retrieving the ExpressRoute Circuit Authorization.
  • delete - (Defaults to 30 minutes) Used when deleting the ExpressRoute Circuit Authorization.

Import

ExpressRoute Circuit Authorizations can be imported using the resourceId, e.g.

terraform import azurerm_express_route_circuit_authorization.auth1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/expressRouteCircuits/myExpressRoute/authorizations/auth1