File tree 7 files changed +49
-19
lines changed
7 files changed +49
-19
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,13 @@ description: |-
10
10
11
11
Cluster data source
12
12
13
+ ## Example Usage
13
14
15
+ ``` terraform
16
+ data "astronomer_cluster" "example" {
17
+ id = "clozc036j01to01jrlgvueo8t"
18
+ }
19
+ ```
14
20
15
21
<!-- schema generated by tfplugindocs -->
16
22
## Schema
Original file line number Diff line number Diff line change @@ -10,7 +10,23 @@ description: |-
10
10
11
11
Clusters data source
12
12
13
+ ## Example Usage
13
14
15
+ ``` terraform
16
+ data "astronomer_deployments" "example_deployments" {}
17
+
18
+ data "astronomer_deployments" "example_deployments_filter_by_deployment_ids" {
19
+ deployment_ids = ["clozc036j01to01jrlgvueo8t", "clozc036j01to01jrlgvueo81"]
20
+ }
21
+
22
+ data "astronomer_deployments" "example_deployments_filter_by_workspace_ids" {
23
+ workspace_ids = ["clozc036j01to01jrlgvueo8t", "clozc036j01to01jrlgvueo81"]
24
+ }
25
+
26
+ data "astronomer_deployments" "example_deployments_filter_by_names" {
27
+ names = ["my first deployment", "my second deployment"]
28
+ }
29
+ ```
14
30
15
31
<!-- schema generated by tfplugindocs -->
16
32
## Schema
Original file line number Diff line number Diff line change @@ -13,18 +13,14 @@ Deployments data source
13
13
## Example Usage
14
14
15
15
``` terraform
16
- data "astronomer_deployments " "example_deployments " {}
16
+ data "astronomer_clusters " "example_clusters " {}
17
17
18
- data "astronomer_deployments " "example_deployments_filter_by_deployment_ids " {
19
- deployment_ids = ["clozc036j01to01jrlgvueo8t", "clozc036j01to01jrlgvueo81 "]
18
+ data "astronomer_clusters " "example_clusters_filter_by_names " {
19
+ names = ["my cluster "]
20
20
}
21
21
22
- data "astronomer_deployments" "example_deployments_filter_by_workspace_ids" {
23
- workspace_ids = ["clozc036j01to01jrlgvueo8t", "clozc036j01to01jrlgvueo81"]
24
- }
25
-
26
- data "astronomer_deployments" "example_deployments_filter_by_names" {
27
- names = ["my first deployment", "my second deployment"]
22
+ data "astronomer_clusters" "example_clusters_filter_by_cloud_provider" {
23
+ cloud_provider = ["AWS"]
28
24
}
29
25
```
30
26
Original file line number Diff line number Diff line change
1
+ data "astronomer_cluster" "example" {
2
+ id = " clozc036j01to01jrlgvueo8t"
3
+ }
Original file line number Diff line number Diff line change
1
+ data "astronomer_deployments" "example_deployments" {}
2
+
3
+ data "astronomer_deployments" "example_deployments_filter_by_deployment_ids" {
4
+ deployment_ids = [" clozc036j01to01jrlgvueo8t" , " clozc036j01to01jrlgvueo81" ]
5
+ }
6
+
7
+ data "astronomer_deployments" "example_deployments_filter_by_workspace_ids" {
8
+ workspace_ids = [" clozc036j01to01jrlgvueo8t" , " clozc036j01to01jrlgvueo81" ]
9
+ }
10
+
11
+ data "astronomer_deployments" "example_deployments_filter_by_names" {
12
+ names = [" my first deployment" , " my second deployment" ]
13
+ }
Original file line number Diff line number Diff line change 1
- data "astronomer_deployments " "example_deployments " {}
1
+ data "astronomer_clusters " "example_clusters " {}
2
2
3
- data "astronomer_deployments " "example_deployments_filter_by_deployment_ids " {
4
- deployment_ids = [" clozc036j01to01jrlgvueo8t " , " clozc036j01to01jrlgvueo81 " ]
3
+ data "astronomer_clusters " "example_clusters_filter_by_names " {
4
+ names = [" my cluster " ]
5
5
}
6
6
7
- data "astronomer_deployments " "example_deployments_filter_by_workspace_ids " {
8
- workspace_ids = [" clozc036j01to01jrlgvueo8t " , " clozc036j01to01jrlgvueo81 " ]
7
+ data "astronomer_clusters " "example_clusters_filter_by_cloud_provider " {
8
+ cloud_provider = [" AWS " ]
9
9
}
10
-
11
- data "astronomer_deployments" "example_deployments_filter_by_names" {
12
- names = [" my first deployment" , " my second deployment" ]
13
- }
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ func (data *ClustersDataSource) ReadFromResponse(
23
23
) diag.Diagnostics {
24
24
values := make ([]attr.Value , len (clusters ))
25
25
for i , deployment := range clusters {
26
- var singleClusterData ClusterDataSource
26
+ var singleClusterData Cluster
27
27
diags := singleClusterData .ReadFromResponse (ctx , & deployment )
28
28
if diags .HasError () {
29
29
return diags
You can’t perform that action at this time.
0 commit comments