Skip to content

Commit

Permalink
Merge pull request #8 from aballiet/antoineballiet/daae-2654-update-a…
Browse files Browse the repository at this point in the history
…irbyte-terraform-provider

Antoineballiet/daae 2654 update airbyte terraform provider
  • Loading branch information
aballiet authored Feb 29, 2024
2 parents c0d57b7 + dcc2c6e commit c494886
Show file tree
Hide file tree
Showing 87 changed files with 3,429 additions and 3,066 deletions.
677 changes: 677 additions & 0 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ terraform {
required_providers {
airbyte = {
source = "aballiet/airbyte-oss"
version = "1.1.1"
version = "1.2.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ terraform {
required_providers {
airbyte = {
source = "aballiet/airbyte-oss"
version = "1.1.0"
version = "1.2.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/data-sources/airbyte_connection/data-source.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
data "airbyte_connection" "my_connection" {
connection_id = "aaa86acf-aeba-4dc8-b85b-cf425a69f844"
connection_id = "0839cded-c24b-4e26-ba48-a24e9eaedfd4"
}
2 changes: 1 addition & 1 deletion examples/data-sources/airbyte_destination/data-source.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
data "airbyte_destination" "my_destination" {
destination_id = "cbc07f65-e5d1-4847-8196-e36f66cd38de"
destination_id = "01e41ae1-e814-42cf-8767-202da61c2ec3"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
data "airbyte_destination_definition" "my_destinationdefinition" {
destination_definition_id = "26a55755-8711-41c3-96fa-6ed0923bff39"
destination_definition_id = "9100781f-2dad-4fe3-95f9-7cbac4a9fe32"
}
2 changes: 1 addition & 1 deletion examples/data-sources/airbyte_operation/data-source.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
data "airbyte_operation" "my_operation" {
operation_id = "20533529-4d0a-4ddf-b687-ccb9e13e7ba5"
operation_id = "ed2caaa8-6acf-4aeb-adc8-f85bcf425a69"
}
2 changes: 1 addition & 1 deletion examples/data-sources/airbyte_source/data-source.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
data "airbyte_source" "my_source" {
source_id = "e598287a-0d45-4578-b83a-0345516193a2"
source_id = "f844cbc0-7f65-4e5d-9847-8196e36f66cd"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
data "airbyte_source_definition" "my_sourcedefinition" {
source_definition_id = "0e334498-7de7-4710-bbdf-6188b86c7c05"
source_definition_id = "38de26a5-5755-4871-91c3-16fa6ed0923b"
}
6 changes: 3 additions & 3 deletions examples/data-sources/airbyte_source_schema/data-source.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data "airbyte_source_schema" "my_sourceschema" {
connection_id = "75ad76ab-ad25-4e96-813a-8182106e4b2c"
connection_id = "ff392053-3529-44d0-addf-f687ccb9e13e"
disable_cache = true
notify_schema_change = false
source_id = "663405a2-956a-4dce-a22c-210d6bb60f1f"
notify_schema_change = true
source_id = "a5e59828-7a0d-4455-b838-3a0345516193"
}
2 changes: 1 addition & 1 deletion examples/data-sources/airbyte_workspace/data-source.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
data "airbyte_workspace" "my_workspace" {
workspace_id = "ea9808f3-1bb1-41a6-8314-62ad4d59ef89"
workspace_id = "a20e3344-987d-4e77-90fb-df6188b86c7c"
}
2 changes: 1 addition & 1 deletion examples/provider/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
airbyte = {
source = "aballiet/airbyte-oss"
version = "1.1.1"
version = "1.2.0"
}
}
}
Expand Down
78 changes: 5 additions & 73 deletions examples/resources/airbyte_connection/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,77 +7,9 @@ resource "airbyte_connection" "my_connection" {
non_breaking_changes_preference = "ignore"
notify_schema_changes = false
notify_schema_changes_by_email = true
operation_ids = [
"fbb5835b-a03c-430b-b29d-f734fbd43f94",
]
prefix = "...my_prefix..."
resource_requirements = {
cpu_limit = "...my_cpu_limit..."
cpu_request = "...my_cpu_request..."
memory_limit = "...my_memory_limit..."
memory_request = "...my_memory_request..."
}
schedule_data = {
basic_schedule = {
time_unit = "minutes"
units = 9
}
cron = {
cron_expression = "...my_cron_expression..."
cron_time_zone = "...my_cron_time_zone..."
}
}
schedule_type = "cron"
source_catalog_id = "aa5e6b8d-d995-4b85-b38d-b9804e4cb5e1"
source_id = "451ef85f-dd64-4863-9632-1f097ee8d406"
status = "inactive"
sync_catalog = {
streams = [
{
config = {
alias_name = "...my_alias_name..."
cursor_field = [
"...",
]
destination_sync_mode = "overwrite"
field_selection_enabled = true
primary_key = [
[
"...",
],
]
selected = false
selected_fields = [
{
field_path = [
"...",
]
},
]
suggested = true
sync_mode = "incremental"
}
stream = {
default_cursor_field = [
"...",
]
json_schema = {
"Sausages" = "{ \"see\": \"documentation\" }"
"East" = "{ \"see\": \"documentation\" }"
}
name = "Mildred Lueilwitz"
namespace = "...my_namespace..."
source_defined_cursor = false
source_defined_primary_key = [
[
"...",
],
]
supported_sync_modes = [
"incremental",
]
}
},
]
}
prefix = "...my_prefix..."
schedule_type = "cron"
source_catalog_id = "bb5835ba-03c3-40b3-a9df-734fbd43f940"
source_id = "eaaa5e6b-8dd9-495b-85b3-8db9804e4cb5"
status = "deprecated"
}
6 changes: 3 additions & 3 deletions examples/resources/airbyte_destination/resource.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "airbyte_destination" "my_destination" {
connection_configuration = { "user" : "charles" }
destination_definition_id = "9db62f95-525d-4bfb-8168-610013358751"
name = "Heidi Conn"
workspace_id = "625efa1b-bfa8-4d64-9f71-9d133279f15a"
destination_definition_id = "1451ef85-fdd6-4486-b963-21f097ee8d40"
name = "Willie Olson"
workspace_id = "bd3f0511-865e-4c9d-b62f-95525dbfb016"
}
42 changes: 13 additions & 29 deletions examples/resources/airbyte_destination_definition/resource.tf
Original file line number Diff line number Diff line change
@@ -1,31 +1,15 @@
resource "airbyte_destination_definition" "my_destinationdefinition" {
destination_definition = {
name = "Dwight Robel"
docker_repository = "...my_docker_repository..."
docker_image_tag = "...my_docker_image_tag..."
documentation_url = "https://united-consensus.biz"
icon = "...my_icon..."
resource_requirements = {
default = {
cpu_request = "...my_cpu_request..."
cpu_limit = "...my_cpu_limit..."
memory_request = "...my_memory_request..."
memory_limit = "...my_memory_limit..."
}
job_specific = [
{
job_type = "replicate"
resource_requirements = {
cpu_request = "...my_cpu_request..."
cpu_limit = "...my_cpu_limit..."
memory_request = "...my_memory_request..."
memory_limit = "...my_memory_limit..."
}
},
]
}
}
scope_id = "ac9256cf-8784-4989-b0f7-7eda0554f685"
scope_type = "organization"
workspace_id = "fc353545-7d24-4426-8ff9-77c6f814b5f1"
cpu_limit = "...my_cpu_limit..."
cpu_request = "...my_cpu_request..."
docker_image_tag = "...my_docker_image_tag..."
docker_repository = "...my_docker_repository..."
documentation_url = "https://healthy-bandolier.com"
icon = "...my_icon..."
job_type = "get_spec"
memory_limit = "...my_memory_limit..."
memory_request = "...my_memory_request..."
name = "Thelma Dooley"
scope_id = "7515722b-625e-4fa1-bbfa-8d645f719d13"
scope_type = "workspace"
workspace_id = "279f15ad-8bb3-4fe3-bfac-9256cf878498"
}
12 changes: 6 additions & 6 deletions examples/resources/airbyte_operation/resource.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "airbyte_operation" "my_operation" {
name = "Ms. Simon Funk"
name = "Jeff Barton"
operator_configuration = {
dbt = {
dbt_arguments = "...my_dbt_arguments..."
Expand All @@ -10,17 +10,17 @@ resource "airbyte_operation" "my_operation" {
normalization = {
option = "basic"
}
operator_type = "normalization"
operator_type = "dbt"
webhook = {
dbt_cloud = {
account_id = 9
job_id = 4
account_id = 10
job_id = 9
}
execution_body = "...my_execution_body..."
execution_url = "...my_execution_url..."
webhook_config_id = "067c0faa-27e0-4571-907b-12f607aea75f"
webhook_config_id = "a0554f68-58fc-4353-9457-d244268ff977"
webhook_type = "dbtCloud"
}
}
workspace_id = "355b45bc-e45d-4e0c-a038-bc3c12192fc9"
workspace_id = "c6f814b5-f1dc-4406-93e6-067c0faa27e0"
}
6 changes: 3 additions & 3 deletions examples/resources/airbyte_source/resource.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "airbyte_source" "my_source" {
connection_configuration = { "user" : "charles" }
name = "Elizabeth Johnson MD"
name = "Tamara Carroll IV"
secret_id = "airbyte_oauth_workspace_0509f049-d671-48cb-8105-0a23d47e6db6_secret_e0d38206-034e-4d75-9d21-da5a99b02826_v1"
source_definition_id = "10e8de28-ee35-4676-9ccc-7d20b17eae1d"
workspace_id = "d9c43502-7c42-4c7c-9806-319146c84086"
source_definition_id = "b12f607a-ea75-4f35-9b45-bce45de0c203"
workspace_id = "8bc3c121-92fc-4920-a51b-10e8de28ee35"
}
42 changes: 13 additions & 29 deletions examples/resources/airbyte_source_definition/resource.tf
Original file line number Diff line number Diff line change
@@ -1,31 +1,15 @@
resource "airbyte_source_definition" "my_sourcedefinition" {
scope_id = "3d9d1434-d468-48b6-8221-d5f1402c7e26"
scope_type = "workspace"
source_definition = {
name = "Felicia Huels"
docker_repository = "...my_docker_repository..."
docker_image_tag = "...my_docker_image_tag..."
documentation_url = "http://unnatural-falling-out.biz"
icon = "...my_icon..."
resource_requirements = {
default = {
cpu_request = "...my_cpu_request..."
cpu_limit = "...my_cpu_limit..."
memory_request = "...my_memory_request..."
memory_limit = "...my_memory_limit..."
}
job_specific = [
{
job_type = "replicate"
resource_requirements = {
cpu_request = "...my_cpu_request..."
cpu_limit = "...my_cpu_limit..."
memory_request = "...my_memory_request..."
memory_limit = "...my_memory_limit..."
}
},
]
}
}
workspace_id = "e038120e-c22a-4c97-8dbe-310dc62194f1"
cpu_limit = "...my_cpu_limit..."
cpu_request = "...my_cpu_request..."
docker_image_tag = "...my_docker_image_tag..."
docker_repository = "...my_docker_repository..."
documentation_url = "http://jam-packed-guarantee.com"
icon = "...my_icon..."
job_type = "connection_updater"
memory_limit = "...my_memory_limit..."
memory_request = "...my_memory_request..."
name = "Garrett Kirlin"
scope_id = "0b17eae1-dd9c-4435-827c-42c7cd806319"
scope_type = "workspace"
workspace_id = "46c84086-3d9d-4143-8d46-88b60221d5f1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ resource "airbyte_source_definition_manifest" "my_sourcedefinitionmanifest" {
description = "...my_description..."
manifest = {}
spec = {}
version = 0
version = 3
}
set_as_active_manifest = true
source_definition_id = "ed73d68a-b928-40ee-8d96-c08a642e276d"
workspace_id = "d0ab8d09-6c23-4af1-b00d-e2cba9260839"
source_definition_id = "2c7e2666-964b-41e5-8ee0-38120ec22ac9"
workspace_id = "78dbe310-dc62-4194-b112-ed73d68ab928"
}
Loading

0 comments on commit c494886

Please sign in to comment.