Manages a Fluid Relay Server.
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "West Europe"
}
resource "azurerm_fluid_relay_server" "example" {
name = "example"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
}
The following arguments are supported:
location
- (Required) The Azure Region where the Fluid Relay Server should exist. Changing this forces a new Fluid Relay Server to be created.
name
- (Required) The name which should be used for this Fluid Relay Server. Changing this forces a new Fluid Relay Server to be created.
resource_group_name
- (Required) The name of the Resource Group where the Fluid Relay Server should exist. Changing this forces a new Fluid Relay Server to be created.
tags
- (Optional) A mapping of tags which should be assigned to the Fluid Relay Server.
identity
- (Optional) An identity
block as defined below.
storage_sku
- (Optional) Sku of the storage associated with the resource, Possible values are standard
and basic
. Changing this forces a new Fluid Relay Server to be created.
An identity
block supports the following:
type
- (Required) Specifies the type of Managed Service Identity that should be configured on this Fluid Relay Service. Possible values are SystemAssigned
,UserAssigned
and SystemAssigned, UserAssigned
.
identity_ids
- (Optional) Specifies a list of User Assigned Managed Identity IDs to be assigned to this Fluid Relay Service.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Fluid Relay Server.
frs_tenant_id
- The Fluid tenantId for this server.
primary_key
- The primary key for this server.
secondary_key
- The secondary key for this server.
orderer_endpoints
- An array of the Fluid Relay Orderer endpoints. This will be deprecated in future version of fluid relay server and will always be empty, more details.
storage_endpoints
- An array of storage endpoints for this Fluid Relay Server. This will be deprecated in future version of fluid relay server and will always be empty, more details.
service_endpoints
- An array of service endpoints for this Fluid Relay Server.
An identity
block exports the following:
principal_id
- The Principal ID for the Service Principal associated with the Identity of this Fluid Relay Server.
tenant_id
- The Tenant ID for the Service Principal associated with the Identity of this Fluid Relay Server.
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Fluid Relay Server.read
- (Defaults to 5 minutes) Used when retrieving the Fluid Relay Server.update
- (Defaults to 10 minutes) Used when updating the Fluid Relay Server.delete
- (Defaults to 10 minutes) Used when deleting the Fluid Relay Server.Fluid Relay Servers can be imported using the resource id
, e.g.
terraform import azurerm_fluid_relay_server.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.FluidRelay/fluidRelayServers/server1