astronomer / terraform-provider-astro

Astro Terraform Provider
https://registry.terraform.io/providers/astronomer/astro/latest
Other
11 stars 4 forks source link

Cluster resource #25

Closed vandyliu closed 7 months ago

vandyliu commented 7 months ago

Description

Add (dedicated) cluster resource creation We probably will need a smarter way to run dedicated cluster tests since they are costly to run but for now, it should be fine to run them on every PR.

🎟 Issue(s)

17

🧪 Functional Testing

Added integration tests with dedicated deployment creation as well

resource "astronomer_cluster" "my_cluster" {
    type = "DEDICATED"
    name = "made with terraform -testing updated again"
    region = "us-central1"
    cloud_provider = "GCP"
  db_instance_type      = "Small General Purpose"
  pod_subnet_range      = "172.21.0.0/19"
  service_peering_range = "172.23.0.0/20"
  service_subnet_range  = "172.22.0.0/22"
  vpc_subnet_range      = "172.20.0.0/22"
    workspace_ids = []
    timeouts = {
        create = "3h"
        update = "2h"
        delete = "10m"
    }
}

📸 Screenshots

Screenshot 2024-04-19 at 6 43 43 PM

📋 Checklist