Skip to content

Commit

Permalink
merge w main
Browse files Browse the repository at this point in the history
  • Loading branch information
vandyliu committed Apr 20, 2024
2 parents a9bbc23 + 8998fe2 commit 56b5561
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
14 changes: 5 additions & 9 deletions docs/data-sources/clusters.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,14 @@ Clusters data source
## Example Usage

```terraform
data "astronomer_deployments" "example_deployments" {}
data "astronomer_clusters" "example_clusters" {}
data "astronomer_deployments" "example_deployments_filter_by_deployment_ids" {
deployment_ids = ["clozc036j01to01jrlgvueo8t", "clozc036j01to01jrlgvueo81"]
data "astronomer_clusters" "example_clusters_filter_by_names" {
names = ["my cluster"]
}
data "astronomer_deployments" "example_deployments_filter_by_workspace_ids" {
workspace_ids = ["clozc036j01to01jrlgvueo8t", "clozc036j01to01jrlgvueo81"]
}
data "astronomer_deployments" "example_deployments_filter_by_names" {
names = ["my first deployment", "my second deployment"]
data "astronomer_clusters" "example_clusters_filter_by_cloud_provider" {
cloud_provider = ["AWS"]
}
```

Expand Down
16 changes: 6 additions & 10 deletions examples/data-sources/astronomer_clusters/data-source.tf
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
data "astronomer_deployments" "example_deployments" {}
data "astronomer_clusters" "example_clusters" {}

data "astronomer_deployments" "example_deployments_filter_by_deployment_ids" {
deployment_ids = ["clozc036j01to01jrlgvueo8t", "clozc036j01to01jrlgvueo81"]
data "astronomer_clusters" "example_clusters_filter_by_names" {
names = ["my cluster"]
}

data "astronomer_deployments" "example_deployments_filter_by_workspace_ids" {
workspace_ids = ["clozc036j01to01jrlgvueo8t", "clozc036j01to01jrlgvueo81"]
}

data "astronomer_deployments" "example_deployments_filter_by_names" {
names = ["my first deployment", "my second deployment"]
}
data "astronomer_clusters" "example_clusters_filter_by_cloud_provider" {
cloud_provider = ["AWS"]
}

0 comments on commit 56b5561

Please sign in to comment.