Summary
The user is encountering a 405 Not Allowed error when trying to connect to Airbyte using the Terraform provider. The error occurs when making a POST request to localhost:8000. The Terraform provider configuration and security group settings have been provided.
Question
Hello! I have deployed Airbyte in an AWS EC2 instance deploying it in localhost:8000. In my security group I have granted ingress to it for ports 22 and 8000 and egress for all the ports. However, when I try to connect to it using the Airbyte Terraform provider, I am getting the following error:
│
│ with airbyte_source_faker.faker_source,
│ on <http://sources.tf|sources.tf> line 1, in resource "airbyte_source_faker" "faker_source":
│ 1: resource "airbyte_source_faker" "faker_source" {
│
│ **Request**:
│ POST /v1/sources HTTP/1.1
│ Host: localhost:8000
│ Accept: application/json
│ Authorization: *********************
│ Content-Type: application/json
│ User-Agent: speakeasy-sdk/go 0.4.1 2.262.2 1.0.0 airbyte
│
│ {"configuration":{"always_updated":false,"count":1000,"parallelism":8,"records_per_slice":2,"seed":1,"sourceType":"faker"},"name":"faker-snowflake","workspaceId":"*************++++"}
│ **Response**:
│ HTTP/1.1 405 Not Allowed
│ Content-Length: 157
│ Connection: keep-alive
│ Content-Type: text/html
│ Date: Wed, 27 Mar 2024 22:33:10 GMT
│ Server: nginx/1.25.3
│
│ <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>```
This is how I am declaring the provider for the Airbyte Terraform:
```terraform {
required_providers {
airbyte = {
source = "airbytehq/airbyte"
version = "0.4.1"
}
}
}
provider "airbyte" {
username = "airbyte" #default password. Needs to be changed
password = "password" #default password. Needs to be changed
server_url = "<http://localhost:8000/v1>"
}```
How could I solve the issue? Thank you!
<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/p1712261794618899) if you want to access the original thread.
[Join the conversation on Slack](https://slack.airbyte.com)
<sub>
["error-405-not-allowed", "airbyte-terraform-provider", "localhost", "security-group", "terraform-configuration"]
</sub>