Skip to content

Commit

Permalink
resource/alicloud_slb_load_balancer: mark attribute tags as Computed.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenHanZhang committed Feb 21, 2024
1 parent f8b3b08 commit 64ef413
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alicloud/resource_alicloud_slb_load_balancer.go
Expand Up @@ -205,7 +205,7 @@ func resourceAlicloudSlbLoadBalancer() *schema.Resource {
Computed: true,
ValidateFunc: validation.StringInSlice([]string{"active", "inactive", "locked"}, false),
},
"tags": tagsSchema(),
"tags": tagsSchemaComputed(),
"vswitch_id": {
Type: schema.TypeString,
Optional: true,
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/slb_load_balancer.html.markdown
Expand Up @@ -75,7 +75,7 @@ Terraform will autogenerate a name beginning with `tf-lb`.
* `load_balancer_spec` - (Optional) The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance.
Launching "Performance-guaranteed" instance, it must be specified. Valid values: `slb.s1.small`, `slb.s2.small`, `slb.s2.medium`,
`slb.s3.small`, `slb.s3.medium`, `slb.s3.large` and `slb.s4.large`. It will be ignored when `instance_charge_type = "PayByCLCU"`.
* `tags` - (Optional) A mapping of tags to assign to the resource. The `tags` can have a maximum of 10 tag for every load balancer instance.
* `tags` - (Optional, Computed) A mapping of tags to assign to the resource. The `tags` can have a maximum of 10 tag for every load balancer instance. This filed mark as `Computed` since v1.217.1.
* `payment_type` - (Optional) The billing method of the load balancer. Valid values are `PayAsYouGo` and `Subscription`. Default to `PayAsYouGo`.
* `period` - (Optional) The duration that you will buy the resource, in month. It is valid when `PaymentType` is `Subscription`. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to create `Subscription` instance or modify the `PayAsYouGo` instance to `Subscription`. Once effect, it will not be modified that means running `terraform apply` will not affect the resource.
* `master_zone_id` - (Optional, ForceNew) The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the [DescribeZone](https://help.aliyun.com/document_detail/27585.htm) API.
Expand Down

0 comments on commit 64ef413

Please sign in to comment.