airbytehq / terraform-provider-airbyte

Terraform Provider for Airbyte API
https://api.airbyte.com/
MIT License
42 stars 19 forks source link

[airbyte_connection] Support basic schedule type #106

Open ivan-sukhomlyn opened 4 months ago

ivan-sukhomlyn commented 4 months ago

Actually, due to limitations on the provider's side, the basic connection schedule type cannot be configured. For example, the manually created connection object structure got from API:

      "schedule": {
        "scheduleType": "basic",
        "basicTiming": "Every 24 hours"
      }

terraform config

resource "airbyte_connection" "test" {
...
  schedule = {
    schedule_type  = "basic"
    basic_schedule = "Every 24 hours"
  }

terraform plan error:

│ Error: Invalid Attribute Value Match
│ 
│   with airbyte_connection.test,
│   on airbyte-connections.tf line 164, in resource "airbyte_connection" "test":
│  164: resource "airbyte_connection" "test" {
│ 
│ Attribute schedule.schedule_type value must be one of: ["\"manual\"" "\"cron\""], got: "basic"

It would be very nice to have this possibility 🙂 🙏

jonseymour commented 2 weeks ago

This is particularly important when you are trying to round trip edits made via the UI through terraform to allow automated deployments. Having to manually configure this schedule im each of 10 different environments because the terraform provider lacks this capability is beyond annoying.