Skip to content

Commit

Permalink
feat: add external_postgresql and external_google_cloud_bigquery (#1456)
Browse files Browse the repository at this point in the history
  • Loading branch information
byashimov authored Nov 27, 2023
1 parent 8e1bc6c commit 1614ae6
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ nav_order: 1
if email is lowercase and valid
- Add `connection_info` field to components of all services. This field contains connection information for the
component, and is a combination of the `host` and `port` fields
- Add `external_postgresql` and `external_google_cloud_bigquery` service integration endpoints

## [4.9.3] - 2023-10-27

Expand Down
26 changes: 25 additions & 1 deletion docs/data-sources/service_integration_endpoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ data "aiven_service_integration_endpoint" "myendpoint" {

- `datadog_user_config` (List of Object) Datadog user configurable settings (see [below for nested schema](#nestedatt--datadog_user_config))
- `endpoint_config` (Map of String) Integration endpoint specific backend configuration
- `endpoint_type` (String) Type of the service integration endpoint. Possible values: `datadog`, `prometheus`, `rsyslog`, `external_elasticsearch_logs`, `external_opensearch_logs`, `external_aws_cloudwatch_logs`, `external_google_cloud_logging`, `external_kafka`, `jolokia`, `external_schema_registry`, `external_aws_cloudwatch_metrics`
- `endpoint_type` (String) Type of the service integration endpoint. Possible values: `datadog`, `prometheus`, `rsyslog`, `external_elasticsearch_logs`, `external_opensearch_logs`, `external_aws_cloudwatch_logs`, `external_google_cloud_logging`, `external_kafka`, `jolokia`, `external_schema_registry`, `external_aws_cloudwatch_metrics`, `external_google_cloud_bigquery`, `external_postgresql`
- `external_aws_cloudwatch_logs_user_config` (List of Object) ExternalAwsCloudwatchLogs user configurable settings (see [below for nested schema](#nestedatt--external_aws_cloudwatch_logs_user_config))
- `external_aws_cloudwatch_metrics_user_config` (List of Object) ExternalAwsCloudwatchMetrics user configurable settings (see [below for nested schema](#nestedatt--external_aws_cloudwatch_metrics_user_config))
- `external_elasticsearch_logs_user_config` (List of Object) ExternalElasticsearchLogs user configurable settings (see [below for nested schema](#nestedatt--external_elasticsearch_logs_user_config))
- `external_google_cloud_bigquery` (List of Object) ExternalGoogleCloudBigquery user configurable settings (see [below for nested schema](#nestedatt--external_google_cloud_bigquery))
- `external_google_cloud_logging_user_config` (List of Object) ExternalGoogleCloudLogging user configurable settings (see [below for nested schema](#nestedatt--external_google_cloud_logging_user_config))
- `external_kafka_user_config` (List of Object) ExternalKafka user configurable settings (see [below for nested schema](#nestedatt--external_kafka_user_config))
- `external_opensearch_logs_user_config` (List of Object) ExternalOpensearchLogs user configurable settings (see [below for nested schema](#nestedatt--external_opensearch_logs_user_config))
- `external_postgresql` (List of Object) ExternalPostgresql user configurable settings (see [below for nested schema](#nestedatt--external_postgresql))
- `external_schema_registry_user_config` (List of Object) ExternalSchemaRegistry user configurable settings (see [below for nested schema](#nestedatt--external_schema_registry_user_config))
- `id` (String) The ID of this resource.
- `jolokia_user_config` (List of Object) Jolokia user configurable settings (see [below for nested schema](#nestedatt--jolokia_user_config))
Expand Down Expand Up @@ -101,6 +103,15 @@ Read-Only:
- `url` (String)


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

Read-Only:

- `project_id` (String)
- `service_account_credentials` (String)


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

Expand Down Expand Up @@ -139,6 +150,19 @@ Read-Only:
- `url` (String)


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

Read-Only:

- `host` (String)
- `password` (String)
- `port` (Number)
- `ssl_mode` (String)
- `ssl_root_cert` (String)
- `username` (String)


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

Expand Down
29 changes: 28 additions & 1 deletion docs/resources/service_integration_endpoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The Service Integration Endpoint resource allows the creation and management of
### Required

- `endpoint_name` (String) Name of the service integration endpoint
- `endpoint_type` (String) Type of the service integration endpoint. Possible values: `datadog`, `prometheus`, `rsyslog`, `external_elasticsearch_logs`, `external_opensearch_logs`, `external_aws_cloudwatch_logs`, `external_google_cloud_logging`, `external_kafka`, `jolokia`, `external_schema_registry`, `external_aws_cloudwatch_metrics`
- `endpoint_type` (String) Type of the service integration endpoint. Possible values: `datadog`, `prometheus`, `rsyslog`, `external_elasticsearch_logs`, `external_opensearch_logs`, `external_aws_cloudwatch_logs`, `external_google_cloud_logging`, `external_kafka`, `jolokia`, `external_schema_registry`, `external_aws_cloudwatch_metrics`, `external_google_cloud_bigquery`, `external_postgresql`
- `project` (String) Project the service integration endpoint belongs to

### Optional
Expand All @@ -27,9 +27,11 @@ The Service Integration Endpoint resource allows the creation and management of
- `external_aws_cloudwatch_logs_user_config` (Block List, Max: 1) ExternalAwsCloudwatchLogs user configurable settings (see [below for nested schema](#nestedblock--external_aws_cloudwatch_logs_user_config))
- `external_aws_cloudwatch_metrics_user_config` (Block List, Max: 1) ExternalAwsCloudwatchMetrics user configurable settings (see [below for nested schema](#nestedblock--external_aws_cloudwatch_metrics_user_config))
- `external_elasticsearch_logs_user_config` (Block List, Max: 1) ExternalElasticsearchLogs user configurable settings (see [below for nested schema](#nestedblock--external_elasticsearch_logs_user_config))
- `external_google_cloud_bigquery` (Block List, Max: 1) ExternalGoogleCloudBigquery user configurable settings (see [below for nested schema](#nestedblock--external_google_cloud_bigquery))
- `external_google_cloud_logging_user_config` (Block List, Max: 1) ExternalGoogleCloudLogging user configurable settings (see [below for nested schema](#nestedblock--external_google_cloud_logging_user_config))
- `external_kafka_user_config` (Block List, Max: 1) ExternalKafka user configurable settings (see [below for nested schema](#nestedblock--external_kafka_user_config))
- `external_opensearch_logs_user_config` (Block List, Max: 1) ExternalOpensearchLogs user configurable settings (see [below for nested schema](#nestedblock--external_opensearch_logs_user_config))
- `external_postgresql` (Block List, Max: 1) ExternalPostgresql user configurable settings (see [below for nested schema](#nestedblock--external_postgresql))
- `external_schema_registry_user_config` (Block List, Max: 1) ExternalSchemaRegistry user configurable settings (see [below for nested schema](#nestedblock--external_schema_registry_user_config))
- `jolokia_user_config` (Block List, Max: 1) Jolokia user configurable settings (see [below for nested schema](#nestedblock--jolokia_user_config))
- `prometheus_user_config` (Block List, Max: 1) Prometheus user configurable settings (see [below for nested schema](#nestedblock--prometheus_user_config))
Expand Down Expand Up @@ -110,6 +112,15 @@ Optional:
- `timeout` (Number) Elasticsearch request timeout limit. The default value is `10.0`.


<a id="nestedblock--external_google_cloud_bigquery"></a>
### Nested Schema for `external_google_cloud_bigquery`

Required:

- `project_id` (String) GCP project id.
- `service_account_credentials` (String) This is a JSON object with the fields documented in https://cloud.google.com/iam/docs/creating-managing-service-account-keys .


<a id="nestedblock--external_google_cloud_logging_user_config"></a>
### Nested Schema for `external_google_cloud_logging_user_config`

Expand Down Expand Up @@ -154,6 +165,22 @@ Optional:
- `timeout` (Number) OpenSearch request timeout limit. The default value is `10.0`.


<a id="nestedblock--external_postgresql"></a>
### Nested Schema for `external_postgresql`

Required:

- `host` (String) Hostname or IP address of the server.
- `password` (String, Sensitive) Password.
- `port` (Number) Port number of the server.
- `username` (String) User name.

Optional:

- `ssl_mode` (String) SSL Mode. The default value is `verify-full`.
- `ssl_root_cert` (String) SSL Root Cert.


<a id="nestedblock--external_schema_registry_user_config"></a>
### Nested Schema for `external_schema_registry_user_config`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ var integrationEndpointTypes = []string{
"jolokia",
"external_schema_registry",
"external_aws_cloudwatch_metrics",
"external_google_cloud_bigquery",
"external_postgresql",
}

var aivenServiceIntegrationEndpointSchema = map[string]*schema.Schema{
Expand Down Expand Up @@ -68,6 +70,8 @@ var aivenServiceIntegrationEndpointSchema = map[string]*schema.Schema{
"jolokia_user_config": dist.IntegrationEndpointTypeJolokia(),
"external_schema_registry_user_config": dist.IntegrationEndpointTypeExternalSchemaRegistry(),
"external_aws_cloudwatch_metrics_user_config": dist.IntegrationEndpointTypeExternalAwsCloudwatchMetrics(),
"external_google_cloud_bigquery": dist.IntegrationEndpointTypeExternalGoogleCloudBigquery(),
"external_postgresql": dist.IntegrationEndpointTypeExternalPostgresql(),
}

func ResourceServiceIntegrationEndpoint() *schema.Resource {
Expand Down

0 comments on commit 1614ae6

Please sign in to comment.