AWS Configuration
Configuration section: [pipelex.aws_config]
Overview
The AWS configuration controls how Pipelex authenticates with AWS services. It supports two authentication methods: environment variables or a secret provider.
Authentication Methods
[pipelex.aws_config]
api_key_method = "env" # or "secret_provider"
Environment Variables Method ("env")
When using api_key_method = "env", Pipelex expects the following environment variables:
AWS_ACCESS_KEY_ID: Your AWS access key IDAWS_SECRET_ACCESS_KEY: Your AWS secret access keyAWS_REGION: Your AWS region
Example .env file:
AWS_ACCESS_KEY_ID=your_access_key_id
AWS_SECRET_ACCESS_KEY=your_secret_access_key
AWS_REGION=us-east-1
Secret Provider Method ("secret_provider")
When using api_key_method = "secret_provider", Pipelex will:
-
Connect to your configured secret provider
-
Look for the same keys as environment variables:
AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYAWS_REGION
Secret Provider Requirements
To use the secret provider method, you must:
- Configure a secret provider in your project using the
SecretsProviderAbstract: See more in the Secrets documentation. - Store your AWS credentials in your secret provider
- Ensure your secret provider is properly authenticated
Dependency Injection
Pipelex uses dependency injection to manage AWS clients and credentials. You can:
- Inject custom AWS client implementations
- Override default credential providers
- Mock AWS services for testing
For detailed information about dependency injection, including examples and best practices, see the Dependency Injection documentation.
Best Practices
Under Construction
This section is currently under development.