I am facing an issue with aws secret manager confi...
# replication-troubleshooting
h
I am facing an issue with aws secret manager configuration. Even after creating the secret, it seems to not using the right keys. It's throwing the following "Exception message: Unable to load AWS credentials from any provider in the chain: [EnvironmentVariableCredentialsProvider: Unable to load AWS credentials from environment variables (AWS_ACCESS_KEY_ID (or AWS_ACCESS_KEY) and AWS_SECRET_KEY (or AWS_SECRET_ACCESS_KEY))". I am using credentials as authenticationType. It seems to be completely ignoring the keys especifically for the secret manager. The ones listed at https://docs.airbyte.com/platform/deploying-airbyte/integrations/secrets
k
Based on the information in the official Airbyte documentation, when configuring AWS Secrets Manager as your external secret manager with
authenticationType: credentials
, Airbyte expects a Kubernetes secret named (by default)
airbyte-config-secrets
to contain the following keys: -
aws-secret-manager-access-key-id
-
aws-secret-manager-secret-access-key
Your
values.yaml
should reference this secret, for example:
Copy code
yaml global:   secretsManager:     type: awsSecretManager     secretName: "airbyte-config-secrets" # Name of your Kubernetes secret.     awsSecretManager:       region: <aws-region>       authenticationType: credentials # Use "credentials" or "instanceProfile"       # ... other optional fields
And your Kubernetes secret should look like:
Copy code
yaml apiVersion: v1 kind: Secret metadata:   name: airbyte-config-secrets type: Opaque stringData:   aws-secret-manager-access-key-id: <YOUR_AWS_ACCESS_KEY_ID>   aws-secret-manager-secret-access-key: <YOUR_AWS_SECRET_ACCESS_KEY>
If you see errors about missing
AWS_ACCESS_KEY_ID
and
AWS_SECRET_ACCESS_KEY
environment variables, it usually means that either: 1. The secret is not named or referenced correctly in your
values.yaml
. 2. The keys inside the secret do not match the expected names (
aws-secret-manager-access-key-id
and
aws-secret-manager-secret-access-key
). 3. The secret is not mounted or available in the namespace where Airbyte is running. Common mistakes: - Using
AWS_ACCESS_KEY_ID
and
AWS_SECRET_ACCESS_KEY
as keys in the secret instead of the expected
aws-secret-manager-access-key-id
and
aws-secret-manager-secret-access-key
. - Not specifying the correct
secretName
in your
values.yaml
. - The secret is created in a different namespace than where Airbyte is deployed. Action steps: - Double-check your Kubernetes secret and ensure the key names match exactly as above. - Ensure your
values.yaml
references the correct secret name. - Make sure the secret is in the same namespace as your Airbyte deployment. For more details and examples, see the official documentation: [Secret Management - Airbyte Docs](https://docs.airbyte.com/platform/deploying-airbyte/integrations/secrets#values). If you have followed these steps and still encounter the error, there may be an issue with how the Helm chart is rendering or passing these secrets to the pods. In that case, reviewing the pod environment variables and Helm template output can help diagnose if the secret is being picked up correctly. If you are using a different version of the Helm chart or Airbyte, please ensure you are following the documentation for your specific version, as key names and configuration may differ slightly between releases.
h
@kapa.ai abctl install throws "couldn't find key AWS_SECRET_MANAGER_ACCESS_KEY_ID in Secret airbyte-abctl/airbyte-config-secrets"
k
A message from kapa.ai
The error message: > couldn't find key AWS_SECRET_MANAGER_ACCESS_KEY_ID in Secret airbyte-abctl/airbyte-config-secrets indicates that the Airbyte installation process (using
abctl install
) is looking for a key named
AWS_SECRET_MANAGER_ACCESS_KEY_ID
in the Kubernetes secret
airbyte-config-secrets
in the
airbyte-abctl
namespace, but it cannot find it. What the documentation says: - The expected key names for AWS credentials in the Kubernetes secret are: -
AWS_SECRET_MANAGER_ACCESS_KEY_ID
-
AWS_SECRET_MANAGER_SECRET_ACCESS_KEY
This is confirmed in the official Airbyte documentation for multi-region and enterprise deployments, which shows the secret manifest as:
Copy code
yaml apiVersion: v1   kind: Secret   metadata:     name: airbyte-config-secrets   type: Opaque   data:     # ...     AWS_SECRET_MANAGER_ACCESS_KEY_ID: your-aws-secret-manager-access-key     AWS_SECRET_MANAGER_SECRET_ACCESS_KEY: your-aws-secret-manager-secret-key     # ...
([Multiple region deployments](https://docs.airbyte.com/platform/enterprise-setup/multi-region#step-4)) What you should do: 1. Check your secret: Make sure your
airbyte-config-secrets
secret in the
airbyte-abctl
namespace contains the keys
AWS_SECRET_MANAGER_ACCESS_KEY_ID
and
AWS_SECRET_MANAGER_SECRET_ACCESS_KEY
(case-sensitive). 2. Example manifest:
Copy code
yaml    apiVersion: v1    kind: Secret    metadata:      name: airbyte-config-secrets    type: Opaque    stringData:      AWS_SECRET_MANAGER_ACCESS_KEY_ID: <your-access-key-id>      AWS_SECRET_MANAGER_SECRET_ACCESS_KEY: <your-secret-access-key>
3. Apply the secret:
Copy code
sh    kubectl apply -f <your-secret-file>.yaml -n airbyte-abctl
Note: Some documentation and Helm chart versions use lowercase keys (e.g.,
aws-secret-manager-access-key-id
), but for
abctl
and recent enterprise setups, the uppercase keys are required as shown above. Double-check the key names and ensure they match exactly what Airbyte expects for your installation method and version. If you follow these steps and use the correct key names, the error should be resolved. If you still encounter issues, please verify the namespace and that the secret is present and correctly formatted. For more details, see the official documentation: [Multiple region deployments](https://docs.airbyte.com/platform/enterprise-setup/multi-region#step-4).
h
@kapa.ai why is does the documentation says aws-secret-manager-access-key-id but it throws an error if not AWS_SECRET_MANAGER_ACCESS_KEY_ID ?
k
A message from kapa.ai
New message text here
g
@hgoncalves Have you considered using the External Secrets Operator? This should sync AWS Secrets with K8s secrets
h
Hey, not really. My version was deployed using abctl on a single EC2 instance. As we did not get any answers, I'll consider that as well. Thank you @Gibson Wasukira