Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tencentcloud/resource_tc_tem_application_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func resourceTencentCloudTemApplicationService() *schema.Resource {
"protocol": {
Type: schema.TypeString,
Optional: true,
Description: "udp or tcp.",
Description: "UDP or TCP.",
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions tencentcloud/resource_tc_tem_environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func resourceTencentCloudTemEnvironmentCreate(d *schema.ResourceData, meta inter
if tags := helper.GetTags(d, "tags"); len(tags) > 0 {
tagService := TagService{client: meta.(*TencentCloudClient).apiV3Conn}
region := meta.(*TencentCloudClient).apiV3Conn.Region
resourceName := fmt.Sprintf("qcs::tem:%s:uin/:tem-environment/%s", region, environmentId)
resourceName := fmt.Sprintf("qcs::tem:%s:uin/:environment/%s", region, environmentId)
if err := tagService.ModifyTags(ctx, resourceName, tags, nil); err != nil {
return err
}
Expand Down Expand Up @@ -215,7 +215,7 @@ func resourceTencentCloudTemEnvironmentRead(d *schema.ResourceData, meta interfa
client := meta.(*TencentCloudClient).apiV3Conn
tagService := TagService{client: client}
region := client.Region
tags, err := tagService.DescribeResourceTags(ctx, "tem", "tem-environment", region, environmentId)
tags, err := tagService.DescribeResourceTags(ctx, "tem", "environment", region, environmentId)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/tem_application_service.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The following arguments are supported:
The `port_mapping_item_list` object supports the following:

* `port` - (Optional, Int) container port.
* `protocol` - (Optional, String) udp or tcp.
* `protocol` - (Optional, String) UDP or TCP.
* `target_port` - (Optional, Int) application listen port.

The `service` object supports the following:
Expand Down