generated from hashicorp/terraform-provider-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
213 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "astra_streaming_sink Resource - terraform-provider-astra" | ||
subcategory: "" | ||
description: |- | ||
astra_cdc enables cdc for an Astra Serverless table. | ||
--- | ||
|
||
# astra_streaming_sink (Resource) | ||
|
||
`astra_cdc` enables cdc for an Astra Serverless table. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "astra_streaming_tenant" "streaming_tenant-1" { | ||
tenant_name = "terraformtest2" | ||
topic = "terraformtest" | ||
region = "useast-4" | ||
cloud_provider = "gcp" | ||
user_email = "seb@datastax.com" | ||
} | ||
resource "astra_cdc" "cdc-1" { | ||
depends_on = [ astra_streaming_tenant.streaming_tenant-1 ] | ||
database_id = "5b70892f-e01a-4595-98e6-19ecc9985d50" | ||
database_name = "sai_test" | ||
table = "test" | ||
keyspace = "sai_test" | ||
topic_partitions = 3 | ||
tenant_name = astra_streaming_tenant.streaming_tenant-1.tenant_name | ||
} | ||
resource "astra_streaming_sink" "streaming_sink-1" { | ||
depends_on = [ astra_streaming_tenant.streaming_tenant-1, astra_cdc.cdc-1 ] | ||
tenant_name = astra_streaming_tenant.streaming_tenant-1.tenant_name | ||
topic = astra_cdc.cdc-1.data_topic | ||
region = "useast-4" | ||
cloud_provider = "gcp" | ||
sink_name = "jdbc-clickhouse" | ||
retain_ordering = true | ||
processing_guarantees = "ATLEAST_ONCE" | ||
parallelism = 3 | ||
namespace = "default" | ||
sink_configs = jsonencode({ | ||
"userName": "clickhouse", | ||
"password": "password", | ||
"jdbcUrl": "jdbc:clickhouse://fake.clickhouse.url:8123/pulsar_clickhouse_jdbc_sink", | ||
"tableName": "pulsar_clickhouse_jdbc_sink" | ||
}) | ||
auto_ack = true | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `auto_ack` (Boolean) auto ack | ||
- `cloud_provider` (String) Cloud provider | ||
- `namespace` (String) Pulsar Namespace | ||
- `parallelism` (Number) Parallelism for Pulsar sink | ||
- `processing_guarantees` (String) "ATLEAST_ONCE""ATMOST_ONCE""EFFECTIVELY_ONCE". | ||
- `region` (String) cloud region | ||
- `retain_ordering` (Boolean) Retain ordering. | ||
- `sink_configs` (String) Sink Configs | ||
- `sink_name` (String) Name of the sink. | ||
- `tenant_name` (String) Streaming tenant name. | ||
- `topic` (String) Streaming tenant topic. | ||
|
||
### Optional | ||
|
||
- `id` (String) The ID of this resource. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import astra_streaming_sink.example tenant_name/topic | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
terraform import astra_cdc.example databaseId/keyspace/table/tenantName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
resource "astra_streaming_tenant" "streaming_tenant-1" { | ||
tenant_name = "terraformtest" | ||
topic = "terraformtest" | ||
region = "useast-4" | ||
cloud_provider = "gcp" | ||
user_email = "seb@datastax.com" | ||
} | ||
resource "astra_cdc" "cdc-1" { | ||
depends_on = [astra_streaming_tenant.streaming_tenant-1] | ||
database_id = "5b70892f-e01a-4595-98e6-19ecc9985d50" | ||
database_name = "sai_test" | ||
table = "test" | ||
keyspace = "sai_test" | ||
topic_partitions = 3 | ||
tenant_name = astra_streaming_tenant.streaming_tenant-1.tenant_name | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
terraform import astra_streaming_sink.example tenant_name/topic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
resource "astra_streaming_tenant" "streaming_tenant-1" { | ||
tenant_name = "terraformtest2" | ||
topic = "terraformtest" | ||
region = "useast-4" | ||
cloud_provider = "gcp" | ||
user_email = "seb@datastax.com" | ||
} | ||
resource "astra_cdc" "cdc-1" { | ||
depends_on = [astra_streaming_tenant.streaming_tenant-1] | ||
database_id = "5b70892f-e01a-4595-98e6-19ecc9985d50" | ||
database_name = "sai_test" | ||
table = "test" | ||
keyspace = "sai_test" | ||
topic_partitions = 3 | ||
tenant_name = astra_streaming_tenant.streaming_tenant-1.tenant_name | ||
} | ||
resource "astra_streaming_sink" "streaming_sink-1" { | ||
depends_on = [astra_streaming_tenant.streaming_tenant-1, astra_cdc.cdc-1] | ||
tenant_name = astra_streaming_tenant.streaming_tenant-1.tenant_name | ||
topic = astra_cdc.cdc-1.data_topic | ||
region = "useast-4" | ||
cloud_provider = "gcp" | ||
sink_name = "jdbc-clickhouse" | ||
retain_ordering = true | ||
processing_guarantees = "ATLEAST_ONCE" | ||
parallelism = 3 | ||
namespace = "default" | ||
sink_configs = jsonencode({ | ||
"userName" : "clickhouse", | ||
"password" : "password", | ||
"jdbcUrl" : "jdbc:clickhouse://fake.clickhouse.url:8123/pulsar_clickhouse_jdbc_sink", | ||
"tableName" : "pulsar_clickhouse_jdbc_sink" | ||
}) | ||
auto_ack = true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
terraform import astra_streaming_tenant.example tenant_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
resource "astra_streaming_tenant" "streaming_tenant-1" { | ||
tenant_name = "terraformtest" | ||
topic = "terraformtest" | ||
region = "useast-4" | ||
cloud_provider = "gcp" | ||
user_email = "seb@datastax.com" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters