Summary
The user is facing an error with status code 405 (Not Allowed) when trying to create an Airbyte source using Terraform. The error message indicates a failure to invoke the API. The user is seeking help to solve this issue.
Question
Hi there,
I am facing trouble connecting to airbyte OSS(I used bre to start up, its running on docker) and creating a source using terraform. The error that I get is something like this… any idea how to solve it?
(base) amnx@Amans-MBP tf_airbyte % terraform apply
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# airbyte_source_airtable.my_source_airtable will be created
+ resource "airbyte_source_airtable" "my_source_airtable" {
+ configuration = {
+ credentials = {
+ personal_access_token = {
+ api_key = (sensitive value)
}
}
}
+ name = "my_source_airtable"
+ source_id = (known after apply)
+ source_type = (known after apply)
+ workspace_id = "4c882d54-a6a7-459a-b617-aa6fff9a46f3"
}
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
airbyte_source_airtable.my_source_airtable: Creating...
╷
│ Error: failure to invoke API
│
│ with airbyte_source_airtable.my_source_airtable,
│ on main.tf line 19, in resource "airbyte_source_airtable" "my_source_airtable":
│ 19: resource "airbyte_source_airtable" "my_source_airtable" {
│
│ unknown status code returned: Status 405
│ <html>
│ <head><title>405 Not Allowed</title></head>
│ <body>
│ <center><h1>405 Not Allowed</h1></center>
│ <hr><center>nginx/1.25.4</center>
│ </body>
│ </html>
│
╵```
<br>
---
This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. [Click here](https://airbytehq.slack.com/archives/C021JANJ6TY/p1718737929793779) if you want
to access the original thread.
[Join the conversation on Slack](https://slack.airbyte.com)
<sub>
["error-405-not-allowed", "airbyte-source-airtable", "terraform", "api"]
</sub>