generated from hashicorp/terraform-provider-scaffolding-framework
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename provider to terraform-provider-astro (#38)
- Loading branch information
Showing
103 changed files
with
908 additions
and
895 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
provider_installation { | ||
dev_overrides { | ||
"registry.terraform.io/astronomer/astronomer" = "~/astronomer/astronomer-terraform-provider/bin" | ||
"registry.terraform.io/astronomer/astro" = "~/astronomer/terraform-provider-astro/bin" | ||
} | ||
direct {} | ||
} |
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 +1,31 @@ | ||
TODO | ||
Licensed under the Apache License, Version 2.0 (the "License") modified with | ||
Commons Clause Restriction; you may not use this code except in compliance with | ||
the License. You may obtain a copy of the License at: | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software distributed | ||
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR | ||
CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations under the License. | ||
|
||
"Commons Clause" License Condition v1.0 | ||
|
||
The Software is provided to you by the Licensor under the License, as defined | ||
below, subject to the following condition. | ||
|
||
Without limiting other conditions in the License, the grant of rights under the | ||
License will not include, and the License does not grant to you, the right to | ||
Sell the Software. | ||
|
||
For purposes of the foregoing, "Sell" means practicing any or all of the rights | ||
granted to you under the License to provide to third parties, for a fee or other | ||
consideration (including without limitation fees for hosting or | ||
consulting/support services related to the Software), a product or service whose | ||
value derives, entirely or substantially, from the functionality of the | ||
Software. Any license notice or attribution required by the License must also | ||
include this Commons Clause License Condition notice. | ||
|
||
Software: Terraform Provider Astro | ||
License: Apache 2.0 | ||
Licensor: Astronomer, Inc. |
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,4 +1,4 @@ | ||
# Astronomer Terraform Provider | ||
# Terraform Provider Astro | ||
|
||
## Requirements | ||
|
||
|
@@ -38,13 +38,13 @@ Then commit the changes to `go.mod` and `go.sum`. | |
```terraform | ||
terraform { | ||
required_providers { | ||
astronomer = { | ||
source = "registry.terraform.io/astronomer/astronomer" | ||
astro = { | ||
source = "registry.terraform.io/astronomer/astro" | ||
} | ||
} | ||
} | ||
provider "astronomer" { | ||
provider "astro" { | ||
organization_id = "<cuid>" | ||
} | ||
|
@@ -71,7 +71,7 @@ To run terraform with the provider, create a `.terraformrc` file in your home di | |
```hcl | ||
provider_installation { | ||
dev_overrides { | ||
"registry.terraform.io/astronomer/astronomer" = "~/astronomer-terraform-provider/bin" # Your path to the provider binary | ||
"registry.terraform.io/astronomer/astro" = "~/terraform-provider-astro/bin" # Your path to the provider binary | ||
} | ||
direct {} | ||
} | ||
|
@@ -81,49 +81,49 @@ provider_installation { | |
```terraform | ||
terraform { | ||
required_providers { | ||
astronomer = { | ||
source = "registry.terraform.io/astronomer/astronomer" | ||
astro = { | ||
source = "registry.terraform.io/astronomer/astro" | ||
} | ||
} | ||
} | ||
# provider configuration | ||
provider "astronomer" { | ||
provider "astro" { | ||
organization_id = "<cuid>" | ||
host = "https://api.astronomer-dev.io" | ||
} | ||
# get information on an existing workspace | ||
data "astronomer_workspace" "example" { | ||
id = "<cuid>>" | ||
data "astro_workspace" "example" { | ||
id = "<cuid>" | ||
} | ||
# output the workspace data to the terminal | ||
output "data_workspace_example" { | ||
value = data.astronomer_workspace.example | ||
value = data.astro_workspace.example | ||
} | ||
# create a new workspace | ||
resource "astronomer_workspace" "tf_workspace" { | ||
resource "astro_workspace" "tf_workspace" { | ||
name = "my workspace" | ||
description = "my first workspace" | ||
cicd_enforced_default = false | ||
} | ||
# output the newly created workspace resource to the terminal | ||
output "terraform_workspace" { | ||
value = astronomer_workspace.tf_workspace | ||
value = astro_workspace.tf_workspace | ||
} | ||
# create a new cluster resource | ||
resource "astronomer_cluster" "tf_cluster" { | ||
resource "astro_cluster" "tf_cluster" { | ||
type = "DEDICATED" | ||
name = "my first cluster" | ||
region = "us-east-1" | ||
cloud_provider = "AWS" | ||
db_instance_type = "db.m6g.large" | ||
vpc_subnet_range = "172.20.0.0/20" | ||
workspace_ids = [astronomer_workspace.tf_workspace.id, data.astronomer_workspace.example.id] | ||
workspace_ids = [astro_workspace.tf_workspace.id, data.astro_workspace.example.id] | ||
timeouts = { | ||
create = "3h" | ||
update = "2h" | ||
|
@@ -132,10 +132,10 @@ resource "astronomer_cluster" "tf_cluster" { | |
} | ||
# create a new dedicated deployment resource in that cluster | ||
resource "astronomer_deployment" "tf_deployment" { | ||
resource "astro_deployment" "tf_dedicated_deployment" { | ||
name = "my first dedicated deployment" | ||
description = "" | ||
cluster_id = astronomer_cluster.tf_cluster.id | ||
cluster_id = astro_cluster.tf_cluster.id | ||
type = "DEDICATED" | ||
contact_emails = ["[email protected]"] | ||
default_task_pod_cpu = "0.25" | ||
|
@@ -148,7 +148,7 @@ resource "astronomer_deployment" "tf_deployment" { | |
resource_quota_cpu = "10" | ||
resource_quota_memory = "20Gi" | ||
scheduler_size = "SMALL" | ||
workspace_id = astronomer_workspace.tf_workspace.id | ||
workspace_id = astro_workspace.tf_workspace.id | ||
environment_variables = [{ | ||
key = "key1" | ||
value = "value1" | ||
|
@@ -157,7 +157,7 @@ resource "astronomer_deployment" "tf_deployment" { | |
} | ||
# create a new standard deployment resource | ||
resource "astronomer_standard_deployment" "tf_standard_deployment" { | ||
resource "astro_deployment" "tf_standard_deployment" { | ||
name = "my first standard deployment" | ||
description = "" | ||
type = "STANDARD" | ||
|
@@ -174,7 +174,7 @@ resource "astronomer_standard_deployment" "tf_standard_deployment" { | |
resource_quota_cpu = "10" | ||
resource_quota_memory = "20Gi" | ||
scheduler_size = "SMALL" | ||
workspace_id = astronomer_workspace.tf_workspace.id | ||
workspace_id = astro_workspace.tf_workspace.id | ||
environment_variables = [] | ||
worker_queues = [{ | ||
name = "default" | ||
|
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.