Dmytro Shamenko
08/15/2025, 1:00 PMkapa.ai
08/15/2025, 1:01 PMhelm_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: 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: 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!Dmytro Shamenko
08/15/2025, 1:16 PMDmytro Shamenko
08/15/2025, 1:22 PMkapa.ai
08/15/2025, 1:22 PMkapa.ai
08/15/2025, 1:22 PMvalues.yaml. The password must be stored in a Kubernetes secret (e.g., airbyte-config-secrets): 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: 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`: 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: 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: 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!Dmytro Shamenko
08/15/2025, 1:27 PMkapa.ai
08/15/2025, 1:27 PMkapa.ai
08/15/2025, 1:27 PMDmytro Shamenko
08/15/2025, 1:35 PMhelm_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
}kapa.ai
08/15/2025, 1:35 PMkapa.ai
08/15/2025, 1:35 PMhelm_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!Dmytro Shamenko
08/15/2025, 1:45 PMEMPORAL_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.aikapa.ai
08/15/2025, 1:45 PMkapa.ai
08/15/2025, 1:45 PMtemporal 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: 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): 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 > > 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: 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.Dmytro Shamenko
08/15/2025, 1:48 PMkapa.ai
08/15/2025, 1:48 PMkapa.ai
08/15/2025, 1:48 PMtemporal_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: 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.Dmytro Shamenko
08/15/2025, 1:53 PMspec:
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.aikapa.ai
08/15/2025, 1:53 PMkapa.ai
08/15/2025, 1:54 PMDB 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: 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: 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.