Skip to content

Commit bbc624e

Browse files
authored
Rename provider to terraform-provider-astro (#38)
1 parent b5bb9ff commit bbc624e

File tree

103 files changed

+908
-895
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+908
-895
lines changed

.github/ISSUE_TEMPLATE/feature_request.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ labels: ''
66
assignees: ''
77
---
88

9-
- [ ] I have checked that a similar [feature request](https://github.com/astronomer/astronomer-terraform-provider/issues?q=is%3Aopen+is%3Aissue+label%3A%22feature+request%22) does not already exist.
9+
- [ ] I have checked that a similar [feature request](https://github.com/astronomer/terraform-provider-astro/issues?q=is%3Aopen+is%3Aissue+label%3A%22feature+request%22) does not already exist.
1010

1111
**✍️ Is your feature request related to a problem? Please describe.**
1212

.terraformrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
provider_installation {
22
dev_overrides {
3-
"registry.terraform.io/astronomer/astronomer" = "~/astronomer/astronomer-terraform-provider/bin"
3+
"registry.terraform.io/astronomer/astro" = "~/astronomer/terraform-provider-astro/bin"
44
}
55
direct {}
66
}

LICENSE

+31-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,31 @@
1-
TODO
1+
Licensed under the Apache License, Version 2.0 (the "License") modified with
2+
Commons Clause Restriction; you may not use this code except in compliance with
3+
the License. You may obtain a copy of the License at:
4+
5+
http://www.apache.org/licenses/LICENSE-2.0
6+
7+
Unless required by applicable law or agreed to in writing, software distributed
8+
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9+
CONDITIONS OF ANY KIND, either express or implied. See the License for the
10+
specific language governing permissions and limitations under the License.
11+
12+
"Commons Clause" License Condition v1.0
13+
14+
The Software is provided to you by the Licensor under the License, as defined
15+
below, subject to the following condition.
16+
17+
Without limiting other conditions in the License, the grant of rights under the
18+
License will not include, and the License does not grant to you, the right to
19+
Sell the Software.
20+
21+
For purposes of the foregoing, "Sell" means practicing any or all of the rights
22+
granted to you under the License to provide to third parties, for a fee or other
23+
consideration (including without limitation fees for hosting or
24+
consulting/support services related to the Software), a product or service whose
25+
value derives, entirely or substantially, from the functionality of the
26+
Software. Any license notice or attribution required by the License must also
27+
include this Commons Clause License Condition notice.
28+
29+
Software: Terraform Provider Astro
30+
License: Apache 2.0
31+
Licensor: Astronomer, Inc.

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ dep:
4444

4545
.PHONY: build
4646
build:
47-
go build -o ${ENVTEST_ASSETS_DIR}/terraform-provider-astronomer
47+
go build -o ${ENVTEST_ASSETS_DIR}
4848
go generate ./...
4949

5050
.PHONY: api_client_gen

README.md

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Astronomer Terraform Provider
1+
# Terraform Provider Astro
22

33
## Requirements
44

@@ -38,13 +38,13 @@ Then commit the changes to `go.mod` and `go.sum`.
3838
```terraform
3939
terraform {
4040
required_providers {
41-
astronomer = {
42-
source = "registry.terraform.io/astronomer/astronomer"
41+
astro = {
42+
source = "registry.terraform.io/astronomer/astro"
4343
}
4444
}
4545
}
4646
47-
provider "astronomer" {
47+
provider "astro" {
4848
organization_id = "<cuid>"
4949
}
5050
@@ -71,7 +71,7 @@ To run terraform with the provider, create a `.terraformrc` file in your home di
7171
```hcl
7272
provider_installation {
7373
dev_overrides {
74-
"registry.terraform.io/astronomer/astronomer" = "~/astronomer-terraform-provider/bin" # Your path to the provider binary
74+
"registry.terraform.io/astronomer/astro" = "~/terraform-provider-astro/bin" # Your path to the provider binary
7575
}
7676
direct {}
7777
}
@@ -81,49 +81,49 @@ provider_installation {
8181
```terraform
8282
terraform {
8383
required_providers {
84-
astronomer = {
85-
source = "registry.terraform.io/astronomer/astronomer"
84+
astro = {
85+
source = "registry.terraform.io/astronomer/astro"
8686
}
8787
}
8888
}
8989
9090
# provider configuration
91-
provider "astronomer" {
91+
provider "astro" {
9292
organization_id = "<cuid>"
9393
host = "https://api.astronomer-dev.io"
9494
}
9595
9696
# get information on an existing workspace
97-
data "astronomer_workspace" "example" {
98-
id = "<cuid>>"
97+
data "astro_workspace" "example" {
98+
id = "<cuid>"
9999
}
100100
101101
# output the workspace data to the terminal
102102
output "data_workspace_example" {
103-
value = data.astronomer_workspace.example
103+
value = data.astro_workspace.example
104104
}
105105
106106
# create a new workspace
107-
resource "astronomer_workspace" "tf_workspace" {
107+
resource "astro_workspace" "tf_workspace" {
108108
name = "my workspace"
109109
description = "my first workspace"
110110
cicd_enforced_default = false
111111
}
112112
113113
# output the newly created workspace resource to the terminal
114114
output "terraform_workspace" {
115-
value = astronomer_workspace.tf_workspace
115+
value = astro_workspace.tf_workspace
116116
}
117117
118118
# create a new cluster resource
119-
resource "astronomer_cluster" "tf_cluster" {
119+
resource "astro_cluster" "tf_cluster" {
120120
type = "DEDICATED"
121121
name = "my first cluster"
122122
region = "us-east-1"
123123
cloud_provider = "AWS"
124124
db_instance_type = "db.m6g.large"
125125
vpc_subnet_range = "172.20.0.0/20"
126-
workspace_ids = [astronomer_workspace.tf_workspace.id, data.astronomer_workspace.example.id]
126+
workspace_ids = [astro_workspace.tf_workspace.id, data.astro_workspace.example.id]
127127
timeouts = {
128128
create = "3h"
129129
update = "2h"
@@ -132,10 +132,10 @@ resource "astronomer_cluster" "tf_cluster" {
132132
}
133133
134134
# create a new dedicated deployment resource in that cluster
135-
resource "astronomer_deployment" "tf_deployment" {
135+
resource "astro_deployment" "tf_dedicated_deployment" {
136136
name = "my first dedicated deployment"
137137
description = ""
138-
cluster_id = astronomer_cluster.tf_cluster.id
138+
cluster_id = astro_cluster.tf_cluster.id
139139
type = "DEDICATED"
140140
contact_emails = ["example@astronomer.io"]
141141
default_task_pod_cpu = "0.25"
@@ -148,7 +148,7 @@ resource "astronomer_deployment" "tf_deployment" {
148148
resource_quota_cpu = "10"
149149
resource_quota_memory = "20Gi"
150150
scheduler_size = "SMALL"
151-
workspace_id = astronomer_workspace.tf_workspace.id
151+
workspace_id = astro_workspace.tf_workspace.id
152152
environment_variables = [{
153153
key = "key1"
154154
value = "value1"
@@ -157,7 +157,7 @@ resource "astronomer_deployment" "tf_deployment" {
157157
}
158158
159159
# create a new standard deployment resource
160-
resource "astronomer_standard_deployment" "tf_standard_deployment" {
160+
resource "astro_deployment" "tf_standard_deployment" {
161161
name = "my first standard deployment"
162162
description = ""
163163
type = "STANDARD"
@@ -174,7 +174,7 @@ resource "astronomer_standard_deployment" "tf_standard_deployment" {
174174
resource_quota_cpu = "10"
175175
resource_quota_memory = "20Gi"
176176
scheduler_size = "SMALL"
177-
workspace_id = astronomer_workspace.tf_workspace.id
177+
workspace_id = astro_workspace.tf_workspace.id
178178
environment_variables = []
179179
worker_queues = [{
180180
name = "default"

docs/data-sources/cluster.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
22
# generated by https://github.com/hashicorp/terraform-plugin-docs
3-
page_title: "astronomer_cluster Data Source - astronomer"
3+
page_title: "astro_cluster Data Source - astro"
44
subcategory: ""
55
description: |-
66
Cluster data source
77
---
88

9-
# astronomer_cluster (Data Source)
9+
# astro_cluster (Data Source)
1010

1111
Cluster data source
1212

1313
## Example Usage
1414

1515
```terraform
16-
data "astronomer_cluster" "example" {
16+
data "astro_cluster" "example" {
1717
id = "clozc036j01to01jrlgvueo8t"
1818
}
1919
```
@@ -33,26 +33,26 @@ data "astronomer_cluster" "example" {
3333
- `is_limited` (Boolean) Whether the cluster is limited
3434
- `metadata` (Attributes) Cluster metadata (see [below for nested schema](#nestedatt--metadata))
3535
- `name` (String) Cluster name
36-
- `node_pools` (Attributes List) Cluster node pools (see [below for nested schema](#nestedatt--node_pools))
36+
- `node_pools` (Attributes Set) Cluster node pools (see [below for nested schema](#nestedatt--node_pools))
3737
- `pod_subnet_range` (String) Cluster pod subnet range
3838
- `provider_account` (String) Cluster provider account
3939
- `region` (String) Cluster region
4040
- `service_peering_range` (String) Cluster service peering range
4141
- `service_subnet_range` (String) Cluster service subnet range
4242
- `status` (String) Cluster status
43-
- `tags` (Attributes List) Cluster tags (see [below for nested schema](#nestedatt--tags))
43+
- `tags` (Attributes Set) Cluster tags (see [below for nested schema](#nestedatt--tags))
4444
- `tenant_id` (String) Cluster tenant ID
4545
- `type` (String) Cluster type
4646
- `updated_at` (String) Cluster last updated timestamp
4747
- `vpc_subnet_range` (String) Cluster VPC subnet range
48-
- `workspace_ids` (List of String) Cluster workspace IDs
48+
- `workspace_ids` (Set of String) Cluster workspace IDs
4949

5050
<a id="nestedatt--metadata"></a>
5151
### Nested Schema for `metadata`
5252

5353
Read-Only:
5454

55-
- `external_ips` (List of String) Cluster external IPs
55+
- `external_ips` (Set of String) Cluster external IPs
5656
- `oidc_issuer_url` (String) Cluster OIDC issuer URL
5757

5858

@@ -69,7 +69,7 @@ Read-Only:
6969
- `max_node_count` (Number) Node pool maximum node count
7070
- `name` (String) Node pool name
7171
- `node_instance_type` (String) Node pool node instance type
72-
- `supported_astro_machines` (List of String) Node pool supported Astro machines
72+
- `supported_astro_machines` (Set of String) Node pool supported Astro machines
7373
- `updated_at` (String) Node pool last updated timestamp
7474

7575

docs/data-sources/cluster_options.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
---
22
# generated by https://github.com/hashicorp/terraform-plugin-docs
3-
page_title: "astronomer_cluster_options Data Source - astronomer"
3+
page_title: "astro_cluster_options Data Source - astro"
44
subcategory: ""
55
description: |-
66
ClusterOptions data source
77
---
88

9-
# astronomer_cluster_options (Data Source)
9+
# astro_cluster_options (Data Source)
1010

1111
ClusterOptions data source
1212

1313
## Example Usage
1414

1515
```terraform
16-
data "astronomer_cluster_options" "example_cluster_options" {
16+
data "astro_cluster_options" "example_cluster_options" {
1717
type = "HYBRID"
1818
}
1919
20-
data "astronomer_cluster_options" "example_cluster_options_filter_by_provider" {
20+
data "astro_cluster_options" "example_cluster_options_filter_by_provider" {
2121
type = "HYBRID"
2222
cloud_provider = "AWS"
2323
}
@@ -36,14 +36,14 @@ data "astronomer_cluster_options" "example_cluster_options_filter_by_provider" {
3636

3737
### Read-Only
3838

39-
- `cluster_options` (Attributes List) (see [below for nested schema](#nestedatt--cluster_options))
39+
- `cluster_options` (Attributes Set) (see [below for nested schema](#nestedatt--cluster_options))
4040

4141
<a id="nestedatt--cluster_options"></a>
4242
### Nested Schema for `cluster_options`
4343

4444
Read-Only:
4545

46-
- `database_instances` (Attributes List) ClusterOption database instances (see [below for nested schema](#nestedatt--cluster_options--database_instances))
46+
- `database_instances` (Attributes Set) ClusterOption database instances (see [below for nested schema](#nestedatt--cluster_options--database_instances))
4747
- `default_database_instance` (Attributes) ClusterOption default database instance (see [below for nested schema](#nestedatt--cluster_options--default_database_instance))
4848
- `default_node_instance` (Attributes) ClusterOption default node instance (see [below for nested schema](#nestedatt--cluster_options--default_node_instance))
4949
- `default_pod_subnet_range` (String) ClusterOption default pod subnet range
@@ -54,9 +54,9 @@ Read-Only:
5454
- `node_count_default` (Number) ClusterOption node count default
5555
- `node_count_max` (Number) ClusterOption node count max
5656
- `node_count_min` (Number) ClusterOption node count min
57-
- `node_instances` (Attributes List) ClusterOption node instances (see [below for nested schema](#nestedatt--cluster_options--node_instances))
57+
- `node_instances` (Attributes Set) ClusterOption node instances (see [below for nested schema](#nestedatt--cluster_options--node_instances))
5858
- `provider` (String) ClusterOption provider
59-
- `regions` (Attributes List) ClusterOption regions (see [below for nested schema](#nestedatt--cluster_options--regions))
59+
- `regions` (Attributes Set) ClusterOption regions (see [below for nested schema](#nestedatt--cluster_options--regions))
6060

6161
<a id="nestedatt--cluster_options--database_instances"></a>
6262
### Nested Schema for `cluster_options.database_instances`
@@ -93,7 +93,7 @@ Read-Only:
9393

9494
Read-Only:
9595

96-
- `banned_instances` (List of String) Region banned instances
96+
- `banned_instances` (Set of String) Region banned instances
9797
- `limited` (Boolean) Region is limited bool
9898
- `name` (String) Region is limited bool
9999

@@ -113,6 +113,6 @@ Read-Only:
113113

114114
Read-Only:
115115

116-
- `banned_instances` (List of String) Region banned instances
116+
- `banned_instances` (Set of String) Region banned instances
117117
- `limited` (Boolean) Region is limited bool
118118
- `name` (String) Region is limited bool

0 commit comments

Comments
 (0)