Skip to content

Commit

Permalink
add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
hellertang committed Sep 26, 2023
1 parent 32aa930 commit a0d69b9
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .changelog/2153.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-resource
tencentcloud_trocket_rocketmq_role
```
25 changes: 19 additions & 6 deletions tencentcloud/resource_tc_trocket_rocketmq_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,25 @@ Provides a resource to create a trocket rocketmq_role
Example Usage
```hcl
resource "tencentcloud_trocket_rocketmq_instance" "rocketmq_instance" {
instance_type = "EXPERIMENT"
name = "test_role"
sku_code = "experiment_500"
remark = "test"
vpc_id = "vpc-xxxxx"
subnet_id = "subnet-xxxxx"
tags = {
tag_key = "rocketmq"
tag_value = "5.x"
}
}
resource "tencentcloud_trocket_rocketmq_role" "rocketmq_role" {
instance_id = ""
role = ""
remark = ""
perm_write =
perm_read =
instance_id = tencentcloud_trocket_rocketmq_instance.rocketmq_instance.id
role = "test_role"
remark = "test for terraform"
perm_write = false
perm_read = true
}
```
Expand All @@ -18,7 +31,7 @@ Import
trocket rocketmq_role can be imported using the id, e.g.
```
terraform import tencentcloud_trocket_rocketmq_role.rocketmq_role rocketmq_role_id
terraform import tencentcloud_trocket_rocketmq_role.rocketmq_role instanceId#role
```
*/
package tencentcloud
Expand Down
25 changes: 19 additions & 6 deletions website/docs/r/trocket_rocketmq_role.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,25 @@ Provides a resource to create a trocket rocketmq_role
## Example Usage

```hcl
resource "tencentcloud_trocket_rocketmq_instance" "rocketmq_instance" {
instance_type = "EXPERIMENT"
name = "test_role"
sku_code = "experiment_500"
remark = "test"
vpc_id = "vpc-xxxxx"
subnet_id = "subnet-xxxxx"
tags = {
tag_key = "rocketmq"
tag_value = "5.x"
}
}
resource "tencentcloud_trocket_rocketmq_role" "rocketmq_role" {
instance_id = ""
role = ""
remark = ""
perm_write =
perm_read =
instance_id = tencentcloud_trocket_rocketmq_instance.rocketmq_instance.id
role = "test_role"
remark = "test for terraform"
perm_write = false
perm_read = true
}
```

Expand Down Expand Up @@ -47,6 +60,6 @@ In addition to all arguments above, the following attributes are exported:
trocket rocketmq_role can be imported using the id, e.g.

```
terraform import tencentcloud_trocket_rocketmq_role.rocketmq_role rocketmq_role_id
terraform import tencentcloud_trocket_rocketmq_role.rocketmq_role instanceId#role
```

0 comments on commit a0d69b9

Please sign in to comment.