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
7 changes: 7 additions & 0 deletions .changelog/3629.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```release-note:new-resource
tencentcloud_wedata_resource_group
```

```release-note:new-resource
tencentcloud_wedata_add_calc_engines_to_project_operation
```
2 changes: 2 additions & 0 deletions tencentcloud/provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -2313,6 +2313,8 @@ tencentcloud_wedata_project
tencentcloud_wedata_project_member
tencentcloud_wedata_resource_group_to_project_attachment
tencentcloud_wedata_lineage_attachment
tencentcloud_wedata_resource_group
tencentcloud_wedata_add_calc_engines_to_project_operation

Cloud Firewall(CFW)
Data Source
Expand Down
21 changes: 3 additions & 18 deletions tencentcloud/services/wedata/resource_tc_wedata_resource_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,6 @@ func ResourceTencentCloudWedataResourceGroup() *schema.Resource {
Description: "Associated project space project ID.",
},

"description": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Description: "Resource group description.",
},

// computed
"resource_group_id": {
Type: schema.TypeString,
Expand Down Expand Up @@ -297,10 +290,6 @@ func resourceTencentCloudWedataResourceGroupCreate(d *schema.ResourceData, meta
request.AssociatedProjectId = helper.String(v.(string))
}

if v, ok := d.GetOk("description"); ok {
request.Description = helper.String(v.(string))
}

reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError {
result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseWedataV20250806Client().CreateResourceGroupWithContext(ctx, request)
if e != nil {
Expand Down Expand Up @@ -374,13 +363,9 @@ func resourceTencentCloudWedataResourceGroupRead(d *schema.ResourceData, meta in
_ = d.Set("subnet", items.SubNet)
}

// if items.Region != nil {
// _ = d.Set("resource_region", items.Region)
// }

// if items.Description != nil {
// _ = d.Set("description", items.Description)
// }
if items.Region != nil {
_ = d.Set("resource_region", items.Region)
}

if items.Id != nil {
_ = d.Set("resource_group_id", items.Id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,5 @@ resource "tencentcloud_wedata_resource_group" "example" {
vpc_id = "vpc-ds5rpnxh"
subnet = "subnet-fz7rw5zq"
resource_region = "ap-beijing-fsi"
description = "description."
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
subcategory: "Wedata"
layout: "tencentcloud"
page_title: "TencentCloud: tencentcloud_wedata_add_calc_engines_to_project_operation"
sidebar_current: "docs-tencentcloud-resource-wedata_add_calc_engines_to_project_operation"
description: |-
Provides a resource to create a WeData add calc engines to project operation
---

# tencentcloud_wedata_add_calc_engines_to_project_operation

Provides a resource to create a WeData add calc engines to project operation

## Example Usage

```hcl
resource "tencentcloud_wedata_add_calc_engines_to_project_operation" "example" {
project_id = "20241107221758402"
dlc_info {
compute_resources = [
"dlc_linau6d4bu8bd5u52ffu52a8"
]
region = "ap-guangzhou"
default_database = "default_db"
}
}
```

## Argument Reference

The following arguments are supported:

* `dlc_info` - (Required, List, ForceNew) DLC cluster information.
* `project_id` - (Required, String, ForceNew) Project ID to be modified.

The `dlc_info` object supports the following:

* `compute_resources` - (Required, Set) DLC resource names (need to add role Uin to DLC, otherwise resources may not be available).
* `default_database` - (Required, String) Specify the default database for the DLC cluster.
* `region` - (Required, String) DLC region.
* `access_account` - (Optional, String) Access account (only effective for standard mode projects and required for standard mode), used to submit DLC tasks.
It is recommended to use a specified sub-account and set corresponding database table permissions for the sub-account; task runner mode may cause task failures when the responsible person leaves; main account mode is not easy for permission control when multiple projects have different permissions.

Enum values:
- TASK_RUNNER (Task Runner)
- OWNER (Main Account Mode)
- SUB (Sub-Account Mode).
* `standard_mode_env_tag` - (Optional, String) Cluster configuration tag (only effective for standard mode projects and required for standard mode). Enum values:
- Prod (Production environment)
- Dev (Development environment).
* `sub_account_uin` - (Optional, String) Sub-account ID (only effective for standard mode projects), when AccessAccount is in sub-account mode, the sub-account ID information needs to be specified, other modes do not need to be specified.

## Attributes Reference

In addition to all arguments above, the following attributes are exported:

* `id` - ID of the resource.



113 changes: 113 additions & 0 deletions website/docs/r/wedata_resource_group.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
---
subcategory: "Wedata"
layout: "tencentcloud"
page_title: "TencentCloud: tencentcloud_wedata_resource_group"
sidebar_current: "docs-tencentcloud-resource-wedata_resource_group"
description: |-
Provides a resource to create a WeData resource group
---

# tencentcloud_wedata_resource_group

Provides a resource to create a WeData resource group

## Example Usage

```hcl
resource "tencentcloud_wedata_resource_group" "example" {
name = "tf_example"
type {
resource_group_type = "Integration"
integration {
real_time_data_sync {
specification = "i32c"
number = 1
}

offline_data_sync {
specification = "integrated"
number = 2
}
}
}

auto_renew_enabled = false
purchase_period = 1
vpc_id = "vpc-ds5rpnxh"
subnet = "subnet-fz7rw5zq"
resource_region = "ap-beijing-fsi"
}
```

## Argument Reference

The following arguments are supported:

* `auto_renew_enabled` - (Required, Bool) Whether auto-renewal is enabled.
* `name` - (Required, String, ForceNew) Resource group name. The name for creating a general resource group must start with a letter, can contain letters, numbers, underscores (_), and up to 64 characters.
* `purchase_period` - (Required, Int) Purchase duration, in months.
* `resource_region` - (Required, String, ForceNew) Resource purchase region.
* `subnet` - (Required, String, ForceNew) Subnet.
* `type` - (Required, List, ForceNew) Information about the activated resource group.
* `vpc_id` - (Required, String, ForceNew) VPC ID.
* `associated_project_id` - (Optional, String, ForceNew) Associated project space project ID.

The `data_service` object of `type` supports the following:

* `number` - (Required, Int) Quantity.
* `specification` - (Required, String) Resource group specification.

The `integration` object of `type` supports the following:

* `offline_data_sync` - (Optional, List) Offline integration resource group.

- integrated (Offline data synchronization - 8C16G)
- i16 (Offline data synchronization - 8C32G).
* `real_time_data_sync` - (Optional, List) Real-time integration resource group.

- i32c (Real-time data synchronization - 16C64G).

The `offline_data_sync` object of `integration` supports the following:

* `number` - (Required, Int) Quantity.
* `specification` - (Required, String) Resource group specification.

The `real_time_data_sync` object of `integration` supports the following:

* `number` - (Required, Int) Quantity.
* `specification` - (Required, String) Resource group specification.

The `schedule` object of `type` supports the following:

* `number` - (Required, Int) Quantity.
* `specification` - (Required, String) Resource group specification.

The `type` object supports the following:

* `resource_group_type` - (Required, String) Resource group type.

- Schedule --- Scheduling resource group
- Integration --- Integration resource group
- DataService -- Data service resource group.
* `data_service` - (Optional, List) Data service resource group (Integration, scheduling, and data service resource groups cannot be purchased simultaneously).

- ds_t (Test specification)
- ds_s (Basic specification)
- ds_m (Popular specification)
- ds_l (Professional specification).
* `integration` - (Optional, List) Integration resource group, subdivided into real-time resource group and offline resource group (Integration, scheduling, and data service resource groups cannot be purchased simultaneously).
* `schedule` - (Optional, List) Scheduling resource group (Integration, scheduling, and data service resource groups cannot be purchased simultaneously).

- s_test (Test specification)
- s_small (Basic specification)
- s_medium (Popular specification)
- s_large (Professional specification).

## Attributes Reference

In addition to all arguments above, the following attributes are exported:

* `id` - ID of the resource.
* `resource_group_id` - Resource group ID.


6 changes: 6 additions & 0 deletions website/tencentcloud.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7259,6 +7259,9 @@
<li>
<a href="#">Resources</a>
<ul class="nav nav-auto-expand">
<li>
<a href="/docs/providers/tencentcloud/r/wedata_add_calc_engines_to_project_operation.html">tencentcloud_wedata_add_calc_engines_to_project_operation</a>
</li>
<li>
<a href="/docs/providers/tencentcloud/r/wedata_code_file.html">tencentcloud_wedata_code_file</a>
</li>
Expand Down Expand Up @@ -7310,6 +7313,9 @@
<li>
<a href="/docs/providers/tencentcloud/r/wedata_resource_folder.html">tencentcloud_wedata_resource_folder</a>
</li>
<li>
<a href="/docs/providers/tencentcloud/r/wedata_resource_group.html">tencentcloud_wedata_resource_group</a>
</li>
<li>
<a href="/docs/providers/tencentcloud/r/wedata_resource_group_to_project_attachment.html">tencentcloud_wedata_resource_group_to_project_attachment</a>
</li>
Expand Down
Loading