-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into yifei_gen_docs
- Loading branch information
Showing
23 changed files
with
1,023 additions
and
74 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
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
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,69 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "automq_kafka_instance Data Source - automq" | ||
subcategory: "" | ||
description: |- | ||
AutoMQ Kafka instance resource | ||
--- | ||
|
||
# automq_kafka_instance (Data Source) | ||
|
||
AutoMQ Kafka instance resource | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `environment_id` (String) Target Kafka environment | ||
|
||
### Optional | ||
|
||
- `id` (String) The ID of the Kafka instance | ||
- `name` (String) The name of the Kafka instance | ||
|
||
### Read-Only | ||
|
||
- `acl` (Boolean) The ACL of the Kafka instance | ||
- `cloud_provider` (String) The cloud provider of the Kafka instance | ||
- `compute_specs` (Attributes) The compute specs of the Kafka instance (see [below for nested schema](#nestedatt--compute_specs)) | ||
- `configs` (Map of String) Additional configuration for the Kafka topic | ||
- `created_at` (String) | ||
- `description` (String) The description of the Kafka instance | ||
- `endpoints` (Attributes List) The endpoints of the Kafka instance (see [below for nested schema](#nestedatt--endpoints)) | ||
- `instance_status` (String) The status of the Kafka instance | ||
- `integrations` (List of String) The integrations of the Kafka instance | ||
- `last_updated` (String) | ||
- `networks` (Attributes List) The networks of the Kafka instance (see [below for nested schema](#nestedatt--networks)) | ||
- `region` (String) The region of the Kafka instance | ||
|
||
<a id="nestedatt--compute_specs"></a> | ||
### Nested Schema for `compute_specs` | ||
|
||
Read-Only: | ||
|
||
- `aku` (Number) The template of the compute specs | ||
- `version` (String) The version of the compute specs | ||
|
||
|
||
<a id="nestedatt--endpoints"></a> | ||
### Nested Schema for `endpoints` | ||
|
||
Read-Only: | ||
|
||
- `bootstrap_servers` (String) The bootstrap servers of the endpoint | ||
- `display_name` (String) The display name of the endpoint | ||
- `mechanisms` (String) The mechanisms of the endpoint | ||
- `network_type` (String) The network type of the endpoint | ||
- `protocol` (String) The protocol of the endpoint | ||
|
||
|
||
<a id="nestedatt--networks"></a> | ||
### Nested Schema for `networks` | ||
|
||
Read-Only: | ||
|
||
- `subnets` (List of String) The subnets of the network | ||
- `zone` (String) The zone of the network |
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 |
---|---|---|
@@ -1,27 +1,5 @@ | ||
--- | ||
page_title: "Provider: Redpanda" | ||
page_title: "Provider: AutoMQ" | ||
description: |- | ||
The Redpanda Data Terraform provider is used to manage Redpanda Dedicated and Cloud clusters and Kafka resources within them. To connect to a Redpanda Cloud cluster, a client_id and client_secret are required. | ||
--- | ||
|
||
# Redpanda Provider | ||
|
||
!!! THIS IS AN ALPHA RELEASE !!! | ||
|
||
Please be aware that all features are subject to change and may not be fully supported at this time. | ||
|
||
The Redpanda provider is designed for managing Redpanda clusters and Kafka resources in Redpanda Dedicated and Cloud environments. It supports the provisioning, management, and configuration of clusters and Kafka resources, facilitating seamless integration into Terraform workflows. | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- `automq_byoc_access_key_id` (String) Set the Access Key Id of client. AutoMQ Cloud (BYOC) requires Access Keys to manage access and authentication to different parts of the service. An Access Key consists of an access key id and a secret key. You can create and manage Access Keys by using the AutoMQ Cloud BYOC Console. Learn more about AutoMQ Cloud BYOC Console access [here](https://docs.automq.com/automq-cloud/manage-identities-and-access). | ||
- `automq_byoc_host` (String) Set the AutoMQ BYOC environment endpoint. The endpoint like http://{hostname}:8080. You can get this endpoint when deploy environment complete. | ||
- `automq_byoc_secret_key` (String) Set the Secret Access Key of client. AutoMQ Cloud (BYOC) requires Access Keys to manage access and authentication to different parts of the service. An Access Key consists of an access key id and a secret key. You can create and manage Access Keys by using the AutoMQ Cloud BYOC Console. Learn more about AutoMQ Cloud BYOC Console access [here](https://docs.automq.com/automq-cloud/manage-identities-and-access). | ||
|
||
## Authentication with Redpanda Cloud | ||
|
||
This provider requires a `client_id` and `client_secret` for authentication with Redpanda Cloud services, enabling users to securely manage their Redpanda resources. You can get these by creating an account in [Redpanda Cloud](https://cloudv2.redpanda.com/home) and then [creating a client in the Redpanda Cloud UI](https://cloudv2.redpanda.com/clients). | ||
The AutoMQ Terraform provider is used to manage AutoMQ Cloud BYOC and SaaS instances and Kafka resources within them. | ||
32 changes: 32 additions & 0 deletions
32
examples/data-sources/automq_kafka_instance/data-sources.tf
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,32 @@ | ||
terraform { | ||
required_providers { | ||
automq = { | ||
source = "hashicorp.com/edu/automq" | ||
} | ||
} | ||
} | ||
|
||
|
||
locals { | ||
env_id = "example" | ||
|
||
automq_byoc_host = "http://localhost:8081" | ||
automq_byoc_access_key_id = "RSaIMzrFC0kAmS1x" | ||
automq_byoc_secret_key = "msnGqOuaV5gblXPvkWfxg7Ao7Nq2iyMo" | ||
} | ||
|
||
|
||
provider "automq" { | ||
automq_byoc_host = local.automq_byoc_host | ||
automq_byoc_access_key_id = local.automq_byoc_access_key_id | ||
automq_byoc_secret_key = local.automq_byoc_secret_key | ||
} | ||
|
||
data "automq_kafka_instance" "example" { | ||
environment_id = local.env_id | ||
name = "automq-example-1" | ||
} | ||
|
||
output "example-id" { | ||
value = data.automq_kafka_instance.example.id | ||
} |
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
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
Oops, something went wrong.