Provides a Private Link Vpc Endpoint Service User resource. Endpoint service user whitelist.
For information about Private Link Vpc Endpoint Service User and how to use it, see What is Vpc Endpoint Service User.
Basic Usage
variable "name" {
default = "tfexampleuser"
}
resource "alicloud_privatelink_vpc_endpoint_service" "example" {
service_description = var.name
connect_bandwidth = 103
auto_accept_connection = false
}
resource "alicloud_ram_user" "example" {
name = var.name
display_name = "user_display_name"
mobile = "86-18688888888"
email = "hello.uuu@aaa.com"
comments = "yoyoyo"
}
resource "alicloud_privatelink_vpc_endpoint_service_user" "example" {
service_id = alicloud_privatelink_vpc_endpoint_service.example.id
user_id = alicloud_ram_user.example.id
}
The following arguments are supported:
dry_run
- (Optional) Specifies whether to perform only a dry run, without performing the actual request. Valid values:
service_id
- (Required, ForceNew) The endpoint service ID.user_id
- (Required, ForceNew) The ID of the Alibaba Cloud account in the whitelist of the endpoint service.The following attributes are exported:
id
- The ID of the resource supplied above.The value is formulated as <service_id>:<user_id>
.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Vpc Endpoint Service User.delete
- (Defaults to 5 mins) Used when delete the Vpc Endpoint Service User.Private Link Vpc Endpoint Service User can be imported using the id, e.g.
$ terraform import alicloud_privatelink_vpc_endpoint_service_user.example <service_id>:<user_id>