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.
Merge branch 'main' of github.com:datastax/terraform-provider-astra i…
…nto main
- Loading branch information
Showing
6 changed files
with
63 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "astra_data_source_available_regions Data Source - terraform-provider-astra" | ||
subcategory: "" | ||
description: |- | ||
Retrieve a list of available cloud regions in Astra | ||
--- | ||
|
||
# astra_data_source_available_regions (Data Source) | ||
|
||
Retrieve a list of available cloud regions in Astra | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- **id** (String) The ID of this resource. | ||
|
||
### Read-Only | ||
|
||
- **results** (List of Object) The list of supported Astra regions by cloud provider and tier. (see [below for nested schema](#nestedatt--results)) | ||
|
||
<a id="nestedatt--results"></a> | ||
### Nested Schema for `results` | ||
|
||
Read-Only: | ||
|
||
- **cloud_provider** (String) | ||
- **region** (String) | ||
- **tier** (String) | ||
|
||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
data "astra_databases" "databaselist" { | ||
status = "ACTIVE" | ||
status = "ACTIVE" | ||
} | ||
|
||
output "existing_dbs" { | ||
|
4 changes: 2 additions & 2 deletions
4
examples/resources/scbs_from _existing_astra_databases/resource.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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
data "astra_databases" "databaselist" { | ||
status = "ACTIVE" | ||
status = "ACTIVE" | ||
} | ||
|
||
locals { | ||
dbs = [for db in data.astra_databases.databaselist.results : db.id] | ||
} | ||
|
||
data "astra_secure_connect_bundle_url" "dev" { | ||
for_each = toset(local.dbs) | ||
for_each = toset(local.dbs) | ||
database_id = each.value | ||
} |
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