terraform-provider-ibm
terraform-provider-ibm copied to clipboard
ibm_dns_glb docs to not specify the enabled argument
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
New or Affected Resource(s) or Datasource(s)
- ibm_dns_glb
Description
https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/dns_glb
There is no description for the enabled argument. The default is false
. So without this argument the resource does not work.
example:
resource "ibm_dns_glb" "cloud" {
depends_on = [ibm_dns_glb_pool.cloud]
name = "backend"
enabled = true
instance_id = ibm_resource_instance.dns.guid
zone_id = ibm_dns_zone.widgets_com.zone_id
...
References
- #0000
@gahlaut-rahul can you please look into it
@powellquiring it is in review.
Is the default documented?
@powellquiring It is like enabled is treated as optional (it is not mandatory each optional will have some default, right ? ) and if you do not mention enabled in tf file, we do not enable the glb [check is based on key exists or not]. There is no change in that behavior. Still if you have any concern around this , we'll address.
Document the default value.
Alright @powellquiring. We'll document the default value as well.
@powellquiring , There is no default value mentioned in the resource schema.. I believe API is taking the default value we are not explicitly setting any default value in schema..
Since a default is accepted by the provider it's behavior should be documented.