Provides a Private Link Vpc Endpoint Service resource.
For information about Private Link Vpc Endpoint Service and how to use it, see What is Vpc Endpoint Service.
Basic Usage
variable "name" {
default = "tf_example"
}
resource "alicloud_privatelink_vpc_endpoint_service" "example" {
service_description = var.name
connect_bandwidth = 103
auto_accept_connection = false
}
The following arguments are supported:
auto_accept_connection
- (Optional) Indicates whether the endpoint service automatically accepts endpoint connection requests. Valid values:
connect_bandwidth
- (Optional, Computed) The default bandwidth of the endpoint connection. Valid values: 100 to 10240. Unit: Mbit/s.dry_run
- (Optional) Specifies whether to perform only a dry run, without performing the actual request.
payer
- (Optional, ForceNew, Computed) The payer of the endpoint service. Valid values:
resource_group_id
- (Optional, Computed, Available since v1.212.0) The resource group ID.service_description
- (Optional) The description of the endpoint service.service_resource_type
- (Optional, ForceNew, Computed, Available since v1.212.0) Service resource type, value:
service_support_ipv6
- (Optional, Computed, Available since v1.212.0) Specifies whether to enable IPv6 for the endpoint service. Valid values:
tags
- (Optional, Map, Available since v1.212.0) The list of tags.zone_affinity_enabled
- (Optional, Computed, Available since v1.212.0) Specifies whether to first resolve the domain name of the nearest endpoint that is associated with the endpoint service. Valid values:
The following attributes are exported:
id
- The ID of the resource supplied above.create_time
- The time when the endpoint service was created.service_business_status
- The service state of the endpoint service. service_domain
- The domain name of the endpoint service.status
- The state of the endpoint service. vpc_endpoint_service_name
- The name of the endpoint service.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Vpc Endpoint Service.delete
- (Defaults to 5 mins) Used when delete the Vpc Endpoint Service.update
- (Defaults to 5 mins) Used when update the Vpc Endpoint Service.Private Link Vpc Endpoint Service can be imported using the id, e.g.
$ terraform import alicloud_privatelink_vpc_endpoint_service.example <id>