Hey <@U04S8PLJWMT>,any guidance on helm_release tr...
# ask-ai
d
Hey @kapa.ai,any guidance on helm_release trough terraform for airbyte?
k
Certainly! You can deploy Airbyte on Kubernetes using the Helm chart and manage the deployment via Terraform's
helm_release
resource. Here’s a high-level guide based on the available knowledge sources: 1. Add the Airbyte Helm Repository First, add the Airbyte Helm repo and update it:
Copy code
sh    helm repo add airbyte https://airbytehq.github.io/helm-charts    helm repo update
You can then reference the chart in your Terraform configuration<sup>[source](https://docs.airbyte.com/platform/deploying-airbyte#installation-guide)</sup>. 2. Terraform Configuration Example Here’s a sample
helm_release
resource for deploying Airbyte:
Copy code
hcl    resource "helm_release" "airbyte" {      name             = "airbyte"      repository       = "https://airbytehq.github.io/helm-charts"      chart            = "airbyte"      version          = "0.63.6" # Use the desired version      namespace        = "airbyte"      create_namespace = true      values           = [file("values.yaml")]      timeout          = 600      dependency_update = true      force_update     = true    }
- Make sure your
values.yaml
is configured for your environment (e.g., database, storage, secrets). - Adjust the chart version as needed<sup>[source](https://discuss.airbyte.io/t/3825)</sup>. 3. Troubleshooting - If you encounter issues with pods not starting (e.g.,
airbyte-airbyte-bootloader
or database pods), check for persistent volume claims and storage class availability in your Kubernetes cluster. - Ensure your cluster has enough resources and the correct permissions for volume binding<sup>[source](https://discuss.airbyte.io/t/3825)</sup>. 4. Further Customization - You can customize your deployment by editing the
values.yaml
file and passing it to the
values
argument in the
helm_release
resource. - For advanced setups (external databases, cloud storage, secret managers), refer to the Airbyte documentation and community discussions for specific Helm values and secret management<sup>[source](https://github.com/airbytehq/airbyte/discussions/47256)</sup>. This approach allows you to manage Airbyte deployments declaratively and integrate them into your infrastructure-as-code workflows. If you need more detailed examples or run into specific errors, let me know!
d
Is there value for role arn and OIDC? on airbyte.
@kapa.ai show me the most critical values for deployment. External database, role arn to assume for oidc and accerss to aws resources.
k
A message from kapa.ai
Here are the most critical values for deploying Airbyte with an external database and AWS integration (including OIDC and IAM role assumption), based strictly on the provided knowledge sources: --- ### 1. External Database Configuration You must disable the internal Postgres and provide your external database details in
values.yaml
. The password must be stored in a Kubernetes secret (e.g.,
airbyte-config-secrets
):
Copy code
yaml postgresql:   enabled: false  global:   database:     type: external     secretName: "airbyte-config-secrets"   # Name of your Kubernetes secret     host: "<your-db-host>"     port: "<your-db-port>"     database: "<your-db-name>"     userSecretKey: "database-user"         # Key in the secret for DB user     passwordSecretKey: "database-password" # Key in the secret for DB password
And your secret should look like:
Copy code
yaml apiVersion: v1 kind: Secret metadata:   name: airbyte-config-secrets type: Opaque stringData:   database-user: <your-db-username>   database-password: <your-db-password>
[Reference](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/database) --- ### 2. OIDC Identity Provider and Admin User To enable SSO/OIDC and set up the admin user, add the following under `global.auth`:
Copy code
yaml global:   auth:     instanceAdmin:       firstName: <admin-first-name>       lastName: <admin-last-name>     identityProvider:       type: oidc       secretName: airbyte-config-secrets   # Name of your Kubernetes secret       oidc:         domain: <your-oidc-domain>         appName: <your-app-name>         clientIdSecretKey: client-id       # Key in the secret for OIDC client ID         clientSecretSecretKey: client-secret # Key in the secret for OIDC client secret
[Reference](https://docs.airbyte.com/platform/next/enterprise-setup/implementation-guide#step-2-configure-your-deployment) --- ### 3. IAM Role for AWS Access (Assume Role via OIDC) To allow Airbyte to assume an AWS IAM role via OIDC (for S3, Secrets Manager, etc.), annotate the Kubernetes service account used by Airbyte with the role ARN. In your Helm values:
Copy code
yaml serviceAccount:   create: true   annotations:     eks.amazonaws.com/role-arn: "arn:aws:iam::<account-id>:role/<role-name>"   name: airbyte-admin
[Reference](https://github.com/airbytehq/airbyte/issues/60915) For S3 storage, configure as follows:
Copy code
yaml global:   storage:     type: s3     bucket:       log: <your-s3-bucket>       state: <your-s3-bucket>       workloadOutput: <your-s3-bucket>     s3:       region: <your-region>       authenticationType: instanceProfile  # Use instanceProfile for IRSA/OIDC
[Reference](https://github.com/airbytehq/airbyte/issues/60915) --- Summary of Critical Values: -
global.database.*
(external DB connection, secrets) -
global.auth.*
(OIDC/SSO, admin user, secrets) -
serviceAccount.annotations["eks.amazonaws.com/role-arn"]
(IAM role for AWS access) -
global.storage.*
(S3 integration, region, authentication type) If you need a full example or have a specific AWS service in mind, let me know!
d
@kapa.ai is this will work as bare minimum to run production ready airbyte?
k
A message from kapa.ai
Based on the provided knowledge sources, the configuration values I listed (external database, OIDC/SSO, IAM role for AWS access, and S3 storage) are indeed among the most critical for a production-ready Airbyte deployment on Kubernetes. The official documentation specifically recommends: - Using a dedicated external database (such as AWS RDS Postgres). - Storing secrets securely in Kubernetes secrets. - Configuring object storage (such as S3) for logs and state. - Using an external secrets manager (such as AWS Secrets Manager) for connector secrets. - Running Airbyte in a properly provisioned Kubernetes cluster (e.g., EKS with at least 6 nodes, memory-optimized instances, and proper networking). - Setting up ingress for secure access to the Airbyte UI/API. - (Optionally) Configuring SSO/OIDC for authentication and admin user setup. However, the knowledge sources also emphasize that a production-ready deployment requires more than just these configuration values. You must ensure the following infrastructure components and best practices are in place: - Kubernetes cluster: Properly sized and configured (e.g., EKS on EC2, not Fargate, with recommended instance types and node count). - Ingress: Secure ingress (e.g., AWS ALB) for UI/API access. - Secrets management: Use AWS Secrets Manager for connector secrets. - Namespace: Create a dedicated Kubernetes namespace for Airbyte. - Network security: Deploy in a private network or behind a firewall/reverse proxy. - Backups and monitoring: Set up regular database backups and monitoring/logging for the cluster and Airbyte services. So, while the configuration values you listed are the core technical requirements, a truly production-ready deployment also depends on your infrastructure, security, and operational practices. The knowledge sources do not provide a single "bare minimum" YAML, but they do make it clear that these elements are all required for a robust, production-ready setup [see here](https://docs.airbyte.com/platform/next/enterprise-setup/implementation-guide#infrastructure-prerequisites). In summary: The values you listed are necessary, but not sufficient on their own. You must also ensure your infrastructure, security, and operational setup meet the production recommendations outlined in the documentation. If you need a checklist or more details on any specific area, let me know!
d
hey, @kapa.ai does it look legit?
Copy code
helm_release.airbyte will be created
  + resource "helm_release" "airbyte" {
      + atomic                     = false
      + chart                      = "airbyte"
      + cleanup_on_fail            = false
      + create_namespace           = false
      + dependency_update          = false
      + disable_crd_hooks          = false
      + disable_openapi_validation = false
      + disable_webhooks           = false
      + force_update               = false
      + id                         = (known after apply)
      + lint                       = false
      + max_history                = 0
      + metadata                   = (known after apply)
      + name                       = "airbyte"
      + namespace                  = "airbyte"
      + pass_credentials           = false
      + recreate_pods              = false
      + render_subchart_notes      = true
      + replace                    = false
      + repository                 = "https://airbytehq.github.io/helm-charts"
      + reset_values               = false
      + reuse_values               = false
      + set                        = [
          + {
              + name  = "global.auth.instanceAdmin.emailSecretKey"
              + value = "instance-admin-email"
                # (1 unchanged attribute hidden)
            },
          + {
              + name  = "global.auth.instanceAdmin.firstName"
              + value = "Airbyte"
                # (1 unchanged attribute hidden)
            },
          + {
              + name  = "global.auth.instanceAdmin.lastName"
              + value = "Admin"
                # (1 unchanged attribute hidden)
            },
          + {
              + name  = "global.auth.instanceAdmin.passwordSecretKey"
              + value = "instance-admin-password"
                # (1 unchanged attribute hidden)
            },
          + {
              + name  = "global.auth.instanceAdmin.secretName"
              + value = "airbyte-config-secrets"
                # (1 unchanged attribute hidden)
            },
          + {
              + name  = "global.database.database"
              + value = "airbyte"
                # (1 unchanged attribute hidden)
            },
          + {
              + name  = "global.database.host"
              + value = "airbyte-psql.cluster-cf4ky4hkghym.eu-west-2.rds.amazonaws.com"
                # (1 unchanged attribute hidden)
            },
          + {
              + name  = "global.database.passwordSecretKey"
              + value = "database-password"
                # (1 unchanged attribute hidden)
            },
          + {
              + name  = "global.database.port"
              + value = "5432"
                # (1 unchanged attribute hidden)
            },
          + {
              + name  = "global.database.secretName"
              + value = "airbyte-config-secrets"
                # (1 unchanged attribute hidden)
            },
          + {
              + name  = "global.database.type"
              + value = "external"
                # (1 unchanged attribute hidden)
            },
          + {
              + name  = "global.database.userSecretKey"
              + value = "database-user"
                # (1 unchanged attribute hidden)
            },
          + {
              + name  = "global.storage.bucket.log"
              + value = "airbyte-datastore-carmoola"
                # (1 unchanged attribute hidden)
            },
          + {
              + name  = "global.storage.bucket.state"
              + value = "airbyte-datastore-carmoola"
                # (1 unchanged attribute hidden)
            },
          + {
              + name  = "global.storage.bucket.workloadOutput"
              + value = "airbyte-datastore-carmoola"
                # (1 unchanged attribute hidden)
            },
          + {
              + name  = "global.storage.s3.authenticationType"
              + value = "instanceProfile"
                # (1 unchanged attribute hidden)
            },
          + {
              + name  = "global.storage.s3.region"
              + value = "eu-west-2"
                # (1 unchanged attribute hidden)
            },
          + {
              + name  = "global.storage.type"
              + value = "s3"
                # (1 unchanged attribute hidden)
            },
          + {
              + name  = "postgresql.enabled"
              + value = "false"
                # (1 unchanged attribute hidden)
            },
          + {
              + name  = "serviceAccount.annotations.eks.amazonaws.com/role-arn"
              + value = "arn:aws:iam::769336358916:role/airbyte-role"
                # (1 unchanged attribute hidden)
            },
          + {
              + name  = "serviceAccount.create"
              + value = "true"
                # (1 unchanged attribute hidden)
            },
          + {
              + name  = "serviceAccount.name"
              + value = "airbyte-server"
                # (1 unchanged attribute hidden)
            },
          + {
              + name  = "webapp.ingress.enabled"
              + value = "false"
                # (1 unchanged attribute hidden)
            },
        ]
      + set_wo                     = (write-only attribute)
      + skip_crds                  = false
      + status                     = "deployed"
      + timeout                    = 300
      + values                     = [
          + null,
        ]
      + verify                     = false
      + version                    = "1.8.0"
      + wait                       = true
      + wait_for_jobs              = false
    }
k
A message from kapa.ai
Your
helm_release
configuration for Airbyte looks legit and aligns with the critical values and best practices described in the official Airbyte documentation for a production deployment on AWS EKS with an external database and IAM role assumption via OIDC. Key points that match the documentation: - External Database: -
postgresql.enabled = false
disables the internal DB. -
global.database.*
values (host, port, database, userSecretKey, passwordSecretKey, secretName, type) are set as required for external Postgres ([see example](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/database)). - S3 Storage: -
global.storage.type = s3
- S3 buckets for log, state, and workloadOutput are set. -
global.storage.s3.authenticationType = instanceProfile
is correct for IRSA/OIDC. -
global.storage.s3.region
is set ([see example](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/storage#values)). - IAM Role for OIDC: -
serviceAccount.annotations.eks.amazonaws.com/role-arn
is set to your IAM role ARN, which is required for IRSA ([see example](https://docs.airbyte.com/platform/next/deploying-airbyte/infrastructure/aws)). - Service Account: -
serviceAccount.create = true
and
serviceAccount.name
are set, which is needed for associating the IAM role. - Admin User and Auth: -
global.auth.instanceAdmin.*
values are set, which is recommended for initial admin setup ([see example](https://docs.airbyte.com/platform/next/enterprise-setup/implementation-guide#configuring-the-airbyte-database)). A few things to double-check: - Ensure your referenced Kubernetes secrets (e.g.,
airbyte-config-secrets
) exist and contain the correct keys/values for database and admin credentials. - The database host value should not include angle brackets or Markdown formatting (e.g., use
airbyte-psql.cluster-cf4ky4hkghym.eu-west-2.rds.amazonaws.com
). - If you plan to use ingress, you may want to enable it (
webapp.ingress.enabled
), but for now, it's set to false, which is fine if you have another access method. Summary: Your configuration matches the documented requirements for a production-ready Airbyte deployment on AWS EKS with external Postgres, S3, and IAM role assumption via OIDC. As long as your secrets and infrastructure are set up as described, this should be a solid foundation for production. If you encounter any issues, check the pod logs and ensure all referenced secrets and AWS permissions are correct. If you need more details on a specific section, let me know!
d
Copy code
EMPORAL_ADDRESS is not set, setting it to 0.0.0.0:7233
PostgreSQL started.
Setup PostgreSQL schema.
2025-08-15T13:44:26.671Z	ERROR	Unable to create SQL database.	{"error": "pq: permission denied to create database", "logging-call-at": "/home/runner/work/docker-builds/docker-builds/temporal/tools/sql/handler.go:93"}
WHat if db created already without schema? @kapa.ai
k
A message from kapa.ai
If the database (for example,
temporal
or
temporal_visibility
) is already created but does not have the required schema, Airbyte (specifically Temporal) will attempt to set up the schema during startup. However, the user connecting to the database must have sufficient privileges to create tables, indexes, and other schema objects within that database. From the error message you provided:
Copy code
ERROR Unable to create SQL database. {"error": "pq: permission denied to create database"}
This error specifically indicates that the user does not have permission to create a database. If the database already exists, this error can be avoided by ensuring that Airbyte is not trying to create the database, but only to set up the schema. What you need to do: - Manually create the required databases (
temporal
,
temporal_visibility
) ahead of time. - Grant the Airbyte user all privileges on the database so it can create the necessary schema objects (tables, indexes, etc.). Example steps (using psql):
Copy code
sql -- As a superuser or admin: CREATE DATABASE temporal; CREATE DATABASE temporal_visibility;  -- Then, for each database: GRANT ALL PRIVILEGES ON DATABASE temporal TO airbyte; GRANT ALL PRIVILEGES ON DATABASE temporal_visibility TO airbyte;
This approach is confirmed in the official answer from the Airbyte community: > The solution was to manually create the databases called
temporal
and
temporal_visibility
in our Postgres server and assign permissions to the Airbyte user. > Just to be clear this is the code required to be run if connecting to the Postgres server using psql >
Copy code
> create database temporal; > grant all privileges on database temporal to airbyte; > > create database temporal_visibility; > grant all privileges on database temporal_visibility to airbyte; >
[See source](https://discuss.airbyte.io/t/1544) Important: If the Airbyte user does not have permission to create the schema (tables, indexes, etc.) within the database, you will see errors like
permission denied for schema public
or similar. In that case, you must also grant the user privileges on the schema:
Copy code
sql GRANT ALL PRIVILEGES ON SCHEMA public TO airbyte;
[See source](https://github.com/airbytehq/airbyte/issues/60244) Summary: - If the database exists but is empty, Airbyte will try to set up the schema. - The Airbyte user must have sufficient privileges on the database and schema to do so. - If you see "permission denied" errors, check and adjust the user's privileges as shown above.
d
So airbyte requires one db + temporal and temporal_activity for functionality? rioght @kapa.ai?
k
A message from kapa.ai
Airbyte requires three databases for full functionality when using an external Postgres setup: 1. airbyte – for Airbyte’s own metadata and configuration. 2. temporal – for Temporal’s workflow persistence. 3. temporal_visibility – for Temporal’s visibility and query features. There is no mention in the knowledge sources of a database named
temporal_activity
. The required databases are specifically
airbyte
,
temporal
, and
temporal_visibility
 [as confirmed here](https://discuss.airbyte.io/t/1544) and in multiple setup examples: > I managed to fix it so I just thought I’d add my solution below in case anyone else has the same issue in the past. > > The issue was that I created a new user in our Postgres sever and configured Airbyte to use this. This user however does not have permission to create new databases. This causes an issue when starting Airbyte for the first time as Airbyte expects to find databases called
temporal
and
temporal_visibility
. If these do not exist then Airbyte tries to create them. And in setup scripts:
Copy code
sql CREATE DATABASE airbyte WITH OWNER = postgres; CREATE DATABASE temporal WITH OWNER = postgres; CREATE DATABASE temporal_visibility WITH OWNER = postgres;
[Source](https://github.com/airbytehq/airbyte/issues/48542) Summary: - Airbyte requires:
airbyte
,
temporal
, and
temporal_visibility
databases. - There is no mention of a
temporal_activity
database in the official documentation or community discussions.
d
Is this issue with db name in temporal pod?
Copy code
spec:
  containers:
  - env:
    - name: AUTO_SETUP
      value: "true"
    - name: DB
      value: postgres12
    - name: DYNAMIC_CONFIG_FILE_PATH
      value: config/dynamicconfig/development.yaml
    - name: POSTGRES_SEEDS
      valueFrom:
        configMapKeyRef:
          key: DATABASE_HOST
          name: airbyte-airbyte-env
    - name: DB_PORT
      valueFrom:
        configMapKeyRef:
          key: DATABASE_PORT
          name: airbyte-airbyte-env
    - name: POSTGRES_USER
      valueFrom:
        secretKeyRef:
          key: database-user
          name: airbyte-config-secrets
    - name: POSTGRES_PWD
      valueFrom:
        secretKeyRef:
          key: database-password
          name: airbyte-config-secrets
@kapa.ai
k
A message from kapa.ai
Based on the provided knowledge sources, the value for the
DB
environment variable in the Temporal pod should be set to
postgresql
, not
postgres12
. The Airbyte and Temporal documentation and community examples consistently use
postgresql
as the value for this variable when connecting to a Postgres database. Setting
DB: postgres12
is not documented or supported in the knowledge sources and may cause issues with Temporal's database connection logic. For example, in a working deployment, the configuration is:
Copy code
yaml - name: DB   value: postgresql
[See example](https://github.com/airbytehq/airbyte/issues/26647) If you use an unsupported value like
postgres12
, Temporal may not recognize the database type correctly, which could lead to connection or schema setup errors. Summary: Yes, the issue could be with the
DB
name in the Temporal pod. You should set:
Copy code
yaml - name: DB   value: postgresql
instead of
postgres12
. If you continue to experience issues, ensure all other environment variables and secrets are correctly configured as per the documentation.