» azurerm_attestation

Manages a Attestation Provider.

» Example Usage

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "UK South"
}

resource "azurerm_attestation_provider" "example" {
  name                = "example-attestationprovider"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location

  policy_signing_certificate_data = file("./example/cert.pem")
}

» Arguments Reference

The following arguments are supported:

  • name - (Required) The name which should be used for this Attestation Provider. Changing this forces a new resource to be created.

  • resource_group_name - (Required) The name of the Resource Group where the attestation provider should exist. Changing this forces a new resource to be created.

  • location - (Required) The Azure Region where the Attestation Provider should exist. Changing this forces a new resource to be created.

  • tags - (Optional) A mapping of tags which should be assigned to the Attestation Provider.

» Attributes Reference

The following Attributes are exported:

  • id - The ID of the Attestation Provider.

  • attestation_uri - The URI of the Attestation Service.

  • trust_model - Trust model used for the Attestation Service.

» Timeouts

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

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

» Import

Attestation Providers can be imported using the resource id, e.g.

terraform import azurerm_attestation_provider.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Attestation/attestationProviders/provider1