@@ -11,21 +11,30 @@ description: |-
1111
1212Use this resource to create API gateway service.
1313
14+ ~ > ** NOTE:** After setting ` uniq_vpc_id ` , it cannot be modified.
15+
1416## Example Usage
1517
1618### Shared Service
1719
1820``` hcl
19- resource "tencentcloud_api_gateway_service" "service" {
20- service_name = "niceservice"
21+ resource "tencentcloud_vpc" "vpc" {
22+ name = "example-vpc"
23+ cidr_block = "10.0.0.0/16"
24+ }
25+
26+ resource "tencentcloud_api_gateway_service" "example" {
27+ service_name = "tf-example"
2128 protocol = "http&https"
22- service_desc = "your nice service "
29+ service_desc = "desc. "
2330 net_type = ["INNER", "OUTER"]
2431 ip_version = "IPv4"
32+ uniq_vpc_id = tencentcloud_vpc.vpc.id
33+
2534 tags = {
26- test-key1 = "test-value1"
27- test-key2 = "test-value2"
35+ createdBy = "terraform"
2836 }
37+
2938 release_limit = 500
3039 pre_limit = 500
3140 test_limit = 500
@@ -35,16 +44,19 @@ resource "tencentcloud_api_gateway_service" "service" {
3544### Exclusive Service
3645
3746``` hcl
38- resource "tencentcloud_api_gateway_service" "service " {
39- service_name = "service "
47+ resource "tencentcloud_api_gateway_service" "example " {
48+ service_name = "tf-example "
4049 protocol = "http&https"
41- service_desc = "your nice service "
50+ service_desc = "desc. "
4251 net_type = ["INNER", "OUTER"]
4352 ip_version = "IPv4"
53+ uniq_vpc_id = tencentcloud_vpc.vpc.id
54+ instance_id = "instance-rc6fcv4e"
55+
4456 tags = {
45- test-key1 = "test-value1 "
57+ createdBy = "terraform "
4658 }
47- instance_id = "instance-rc6fcv4e"
59+
4860 release_limit = 500
4961 pre_limit = 500
5062 test_limit = 500
@@ -59,13 +71,14 @@ The following arguments are supported:
5971* ` protocol ` - (Required, String) Service frontend request type. Valid values: ` http ` , ` https ` , ` http&https ` .
6072* ` service_name ` - (Required, String) Custom service name.
6173* ` exclusive_set_name ` - (Optional, String, ForceNew, ** Deprecated** ) It has been deprecated from version 1.81.9. Self-deployed cluster name, which is used to specify the self-deployed cluster where the service is to be created.
62- * ` instance_id ` - (Optional, String) Exclusive instance ID.
74+ * ` instance_id ` - (Optional, String, ForceNew ) Exclusive instance ID.
6375* ` ip_version ` - (Optional, String, ForceNew) IP version number. Valid values: ` IPv4 ` , ` IPv6 ` . Default value: ` IPv4 ` .
6476* ` pre_limit ` - (Optional, Int) API QPS value. Enter a positive number to limit the API query rate per second ` QPS ` .
6577* ` release_limit ` - (Optional, Int) API QPS value. Enter a positive number to limit the API query rate per second ` QPS ` .
6678* ` service_desc ` - (Optional, String) Custom service description.
6779* ` tags ` - (Optional, Map) Tag description list.
6880* ` test_limit ` - (Optional, Int) API QPS value. Enter a positive number to limit the API query rate per second ` QPS ` .
81+ * ` uniq_vpc_id ` - (Optional, String) VPC ID.
6982
7083## Attributes Reference
7184
0 commit comments