Skip to content

Commit

Permalink
feat: add missing connection info to various service types (#1726)
Browse files Browse the repository at this point in the history
  • Loading branch information
Serpentiel authored May 16, 2024
1 parent b7187ba commit 3826125
Show file tree
Hide file tree
Showing 58 changed files with 1,174 additions and 81 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ jobs:
servicecomponent,
staticip,
serviceintegration,
vpc
vpc,
dragonfly,
thanos
]

steps:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ nav_order: 1
## [MAJOR.MINOR.PATCH] - YYYY-MM-DD

- Fix `ip_filter`, `ip_filter_string`, and `ip_filter_object` crash when receive an unexpected type
- Add missing connection info fields to various service types

## [4.17.0] - 2024-05-07

Expand Down
9 changes: 9 additions & 0 deletions docs/data-sources/cassandra.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ data "aiven_cassandra" "bar" {
### Read-Only

- `additional_disk_space` (String) Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing.
- `cassandra` (List of Object, Sensitive) Cassandra server provided values (see [below for nested schema](#nestedatt--cassandra))
- `cassandra_user_config` (List of Object) Cassandra user configurable settings (see [below for nested schema](#nestedatt--cassandra_user_config))
- `cloud_name` (String) Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These are documented on each Cloud provider's own support articles, like [here for Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
- `components` (List of Object) Service component information objects (see [below for nested schema](#nestedatt--components))
Expand All @@ -56,6 +57,14 @@ data "aiven_cassandra" "bar" {
- `tech_emails` (Set of Object) The email addresses for [service contacts](https://aiven.io/docs/platform/howto/technical-emails), who will receive important alerts and updates about this service. You can also set email contacts at the project level. (see [below for nested schema](#nestedatt--tech_emails))
- `termination_protection` (Boolean) Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent unintentional service deletion. This does not shield against deleting databases or topics but for services with backups much of the content can at least be restored from backup in case accidental deletion is done.

<a id="nestedatt--cassandra"></a>
### Nested Schema for `cassandra`

Read-Only:

- `uris` (List of String)


<a id="nestedatt--cassandra_user_config"></a>
### Nested Schema for `cassandra_user_config`

Expand Down
9 changes: 9 additions & 0 deletions docs/data-sources/clickhouse.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ data "aiven_clickhouse" "clickhouse" {
### Read-Only

- `additional_disk_space` (String) Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing.
- `clickhouse` (List of Object, Sensitive) Clickhouse server provided values (see [below for nested schema](#nestedatt--clickhouse))
- `clickhouse_user_config` (List of Object) Clickhouse user configurable settings (see [below for nested schema](#nestedatt--clickhouse_user_config))
- `cloud_name` (String) Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These are documented on each Cloud provider's own support articles, like [here for Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
- `components` (List of Object) Service component information objects (see [below for nested schema](#nestedatt--components))
Expand All @@ -56,6 +57,14 @@ data "aiven_clickhouse" "clickhouse" {
- `tech_emails` (Set of Object) The email addresses for [service contacts](https://aiven.io/docs/platform/howto/technical-emails), who will receive important alerts and updates about this service. You can also set email contacts at the project level. (see [below for nested schema](#nestedatt--tech_emails))
- `termination_protection` (Boolean) Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent unintentional service deletion. This does not shield against deleting databases or topics but for services with backups much of the content can at least be restored from backup in case accidental deletion is done.

<a id="nestedatt--clickhouse"></a>
### Nested Schema for `clickhouse`

Read-Only:

- `uris` (List of String)


<a id="nestedatt--clickhouse_user_config"></a>
### Nested Schema for `clickhouse_user_config`

Expand Down
12 changes: 12 additions & 0 deletions docs/data-sources/dragonfly.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ data "aiven_dragonfly" "example_dragonfly" {
- `disk_space_default` (String) The default disk space of the service, possible values depend on the service type, the cloud provider and the project. Its also the minimum value for `disk_space`
- `disk_space_step` (String) The default disk space step of the service, possible values depend on the service type, the cloud provider and the project. `disk_space` needs to increment from `disk_space_default` by increments of this size.
- `disk_space_used` (String) Disk space that service is currently using
- `dragonfly` (List of Object, Sensitive) Dragonfly server provided values (see [below for nested schema](#nestedatt--dragonfly))
- `dragonfly_user_config` (List of Object) Dragonfly user configurable settings (see [below for nested schema](#nestedatt--dragonfly_user_config))
- `id` (String) The ID of this resource.
- `maintenance_window_dow` (String) Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
Expand Down Expand Up @@ -71,6 +72,17 @@ Read-Only:
- `usage` (String)


<a id="nestedatt--dragonfly"></a>
### Nested Schema for `dragonfly`

Read-Only:

- `password` (String)
- `replica_uri` (String)
- `slave_uris` (List of String)
- `uris` (List of String)


<a id="nestedatt--dragonfly_user_config"></a>
### Nested Schema for `dragonfly_user_config`

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/flink.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ data "aiven_flink" "flink" {
- `disk_space_default` (String) The default disk space of the service, possible values depend on the service type, the cloud provider and the project. Its also the minimum value for `disk_space`
- `disk_space_step` (String) The default disk space step of the service, possible values depend on the service type, the cloud provider and the project. `disk_space` needs to increment from `disk_space_default` by increments of this size.
- `disk_space_used` (String) Disk space that service is currently using
- `flink` (List of Object) Flink server provided values (see [below for nested schema](#nestedatt--flink))
- `flink` (List of Object, Sensitive) Flink server provided values (see [below for nested schema](#nestedatt--flink))
- `flink_user_config` (List of Object) Flink user configurable settings (see [below for nested schema](#nestedatt--flink_user_config))
- `id` (String) The ID of this resource.
- `maintenance_window_dow` (String) Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
Expand Down
9 changes: 9 additions & 0 deletions docs/data-sources/grafana.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ data "aiven_grafana" "gr1" {
- `disk_space_default` (String) The default disk space of the service, possible values depend on the service type, the cloud provider and the project. Its also the minimum value for `disk_space`
- `disk_space_step` (String) The default disk space step of the service, possible values depend on the service type, the cloud provider and the project. `disk_space` needs to increment from `disk_space_default` by increments of this size.
- `disk_space_used` (String) Disk space that service is currently using
- `grafana` (List of Object, Sensitive) Grafana server provided values (see [below for nested schema](#nestedatt--grafana))
- `grafana_user_config` (List of Object) Grafana user configurable settings (see [below for nested schema](#nestedatt--grafana_user_config))
- `id` (String) The ID of this resource.
- `maintenance_window_dow` (String) Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
Expand Down Expand Up @@ -71,6 +72,14 @@ Read-Only:
- `usage` (String)


<a id="nestedatt--grafana"></a>
### Nested Schema for `grafana`

Read-Only:

- `uris` (List of String)


<a id="nestedatt--grafana_user_config"></a>
### Nested Schema for `grafana_user_config`

Expand Down
1 change: 1 addition & 0 deletions docs/data-sources/kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ Read-Only:
- `connect_uri` (String)
- `rest_uri` (String)
- `schema_registry_uri` (String)
- `uris` (List of String)


<a id="nestedatt--kafka_user_config"></a>
Expand Down
10 changes: 10 additions & 0 deletions docs/data-sources/m3aggregator.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ data "aiven_m3aggregator" "m3a" {
- `disk_space_step` (String) The default disk space step of the service, possible values depend on the service type, the cloud provider and the project. `disk_space` needs to increment from `disk_space_default` by increments of this size.
- `disk_space_used` (String) Disk space that service is currently using
- `id` (String) The ID of this resource.
- `m3aggregator` (List of Object, Sensitive) M3 Aggregator server provided values (see [below for nested schema](#nestedatt--m3aggregator))
- `m3aggregator_user_config` (List of Object) M3aggregator user configurable settings (see [below for nested schema](#nestedatt--m3aggregator_user_config))
- `maintenance_window_dow` (String) Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
- `maintenance_window_time` (String) Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
Expand Down Expand Up @@ -71,6 +72,15 @@ Read-Only:
- `usage` (String)


<a id="nestedatt--m3aggregator"></a>
### Nested Schema for `m3aggregator`

Read-Only:

- `aggregator_http_uri` (String)
- `uris` (List of String)


<a id="nestedatt--m3aggregator_user_config"></a>
### Nested Schema for `m3aggregator_user_config`

Expand Down
14 changes: 14 additions & 0 deletions docs/data-sources/m3db.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ data "aiven_m3db" "m3" {
- `disk_space_step` (String) The default disk space step of the service, possible values depend on the service type, the cloud provider and the project. `disk_space` needs to increment from `disk_space_default` by increments of this size.
- `disk_space_used` (String) Disk space that service is currently using
- `id` (String) The ID of this resource.
- `m3db` (List of Object, Sensitive) M3DB server provided values (see [below for nested schema](#nestedatt--m3db))
- `m3db_user_config` (List of Object) M3db user configurable settings (see [below for nested schema](#nestedatt--m3db_user_config))
- `maintenance_window_dow` (String) Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
- `maintenance_window_time` (String) Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
Expand Down Expand Up @@ -71,6 +72,19 @@ Read-Only:
- `usage` (String)


<a id="nestedatt--m3db"></a>
### Nested Schema for `m3db`

Read-Only:

- `http_cluster_uri` (String)
- `http_node_uri` (String)
- `influxdb_uri` (String)
- `prometheus_remote_read_uri` (String)
- `prometheus_remote_write_uri` (String)
- `uris` (List of String)


<a id="nestedatt--m3db_user_config"></a>
### Nested Schema for `m3db_user_config`

Expand Down
26 changes: 26 additions & 0 deletions docs/data-sources/mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ data "aiven_mysql" "mysql1" {
- `id` (String) The ID of this resource.
- `maintenance_window_dow` (String) Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
- `maintenance_window_time` (String) Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
- `mysql` (List of Object, Sensitive) MySQL specific server provided values (see [below for nested schema](#nestedatt--mysql))
- `mysql_user_config` (List of Object) Mysql user configurable settings (see [below for nested schema](#nestedatt--mysql_user_config))
- `plan` (String) Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are `hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
- `project_vpc_id` (String) Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new servers so the operation can take significant amount of time to complete if the service has a lot of data.
Expand Down Expand Up @@ -71,6 +72,31 @@ Read-Only:
- `usage` (String)


<a id="nestedatt--mysql"></a>
### Nested Schema for `mysql`

Read-Only:

- `params` (List of Object) (see [below for nested schema](#nestedobjatt--mysql--params))
- `replica_uri` (String)
- `standby_uris` (List of String)
- `syncing_uris` (List of String)
- `uris` (List of String)

<a id="nestedobjatt--mysql--params"></a>
### Nested Schema for `mysql.params`

Read-Only:

- `database_name` (String)
- `host` (String)
- `password` (String)
- `port` (Number)
- `sslmode` (String)
- `user` (String)



<a id="nestedatt--mysql_user_config"></a>
### Nested Schema for `mysql_user_config`

Expand Down
6 changes: 5 additions & 1 deletion docs/data-sources/opensearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ data "aiven_opensearch" "os1" {
- `id` (String) The ID of this resource.
- `maintenance_window_dow` (String) Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
- `maintenance_window_time` (String) Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
- `opensearch` (List of Object) OpenSearch server provided values (see [below for nested schema](#nestedatt--opensearch))
- `opensearch` (List of Object, Sensitive) OpenSearch server provided values (see [below for nested schema](#nestedatt--opensearch))
- `opensearch_user_config` (List of Object) Opensearch user configurable settings (see [below for nested schema](#nestedatt--opensearch_user_config))
- `plan` (String) Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are `hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
- `project_vpc_id` (String) Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new servers so the operation can take significant amount of time to complete if the service has a lot of data.
Expand Down Expand Up @@ -77,7 +77,11 @@ Read-Only:

Read-Only:

- `kibana_uri` (String)
- `opensearch_dashboards_uri` (String)
- `password` (String)
- `uris` (List of String)
- `username` (String)


<a id="nestedatt--opensearch_user_config"></a>
Expand Down
20 changes: 19 additions & 1 deletion docs/data-sources/pg.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ data "aiven_pg" "pg" {
- `id` (String) The ID of this resource.
- `maintenance_window_dow` (String) Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
- `maintenance_window_time` (String) Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
- `pg` (List of Object) PostgreSQL specific server provided values (see [below for nested schema](#nestedatt--pg))
- `pg` (List of Object, Sensitive) PostgreSQL specific server provided values (see [below for nested schema](#nestedatt--pg))
- `pg_user_config` (List of Object) Pg user configurable settings (see [below for nested schema](#nestedatt--pg_user_config))
- `plan` (String) Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are `hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
- `project_vpc_id` (String) Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new servers so the operation can take significant amount of time to complete if the service has a lot of data.
Expand Down Expand Up @@ -77,16 +77,34 @@ Read-Only:

Read-Only:

- `bouncer` (String)
- `dbname` (String)
- `host` (String)
- `max_connections` (Number)
- `params` (List of Object) (see [below for nested schema](#nestedobjatt--pg--params))
- `password` (String)
- `port` (Number)
- `replica_uri` (String)
- `sslmode` (String)
- `standby_uris` (List of String)
- `syncing_uris` (List of String)
- `uri` (String)
- `uris` (List of String)
- `user` (String)

<a id="nestedobjatt--pg--params"></a>
### Nested Schema for `pg.params`

Read-Only:

- `database_name` (String)
- `host` (String)
- `password` (String)
- `port` (Number)
- `sslmode` (String)
- `user` (String)



<a id="nestedatt--pg_user_config"></a>
### Nested Schema for `pg_user_config`
Expand Down
Loading

0 comments on commit 3826125

Please sign in to comment.