diff --git a/CHANGELOG.md b/CHANGELOG.md index 83020403..0331b24d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,10 @@ +## [v1.0.12](https://github.com/civo/terraform-provider-civo/releases/tag/v1.0.12) (26 February 2022) + +### Merged +- [#117](https://github.com/civo/terraform-provider-civo/pull/117) - fix: remove double default +- [#121](https://github.com/civo/terraform-provider-civo/pull/121) - Enable loab balancer support for datasource + ## [v1.0.11](https://github.com/civo/terraform-provider-civo/releases/tag/v1.0.11) (16 February 2022) ### Merged diff --git a/docs/data-sources/loadbalancer.md b/docs/data-sources/loadbalancer.md new file mode 100644 index 00000000..840afc8c --- /dev/null +++ b/docs/data-sources/loadbalancer.md @@ -0,0 +1,55 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "civo_loadbalancer Data Source - terraform-provider-civo" +subcategory: "" +description: |- + Get information on a load balancer for use in other resources. This data source provides all of the load balancers properties as configured on your Civo account. + An error will be raised if the provided load balancer name does not exist in your Civo account. +--- + +# civo_loadbalancer (Data Source) + +Get information on a load balancer for use in other resources. This data source provides all of the load balancers properties as configured on your Civo account. + +An error will be raised if the provided load balancer name does not exist in your Civo account. + +## Example Usage + +```terraform +# TODO +``` + + +## Schema + +### Optional + +- **id** (String) The id of the load balancer to retrieve (You can find this id from service annotations 'kubernetes.civo.com/loadbalancer-id') +- **name** (String) The name of the load balancer (You can find this name from service annotations 'kubernetes.civo.com/loadbalancer-name') + +### Read-Only + +- **algorithm** (String) The algorithm used by the load balancer +- **backends** (List of Object) (see [below for nested schema](#nestedatt--backends)) +- **cluster_id** (String) The cluster id of the load balancer +- **enable_proxy_protocol** (Boolean) Whether the load balancer is configured to proxy protocol +- **external_traffic_policy** (String) The external traffic policy of the load balancer +- **firewall_id** (String) The firewall id of the load balancer +- **private_ip** (String) The private ip of the load balancer +- **public_ip** (String) The public ip of the load balancer +- **session_affinity** (String) The session affinity of the load balancer +- **session_affinity_config_timeout** (Number) The session affinity config timeout of the load balancer +- **state** (String) The state of the load balancer + + +### Nested Schema for `backends` + +Read-Only: + +- **health_check_port** (Number) +- **ip** (String) +- **protocol** (String) +- **source_port** (Number) +- **target_port** (Number) + +