mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-27 03:54:00 +03:00
28 lines
642 B
YAML
28 lines
642 B
YAML
version: "1"
|
|
|
|
container:
|
|
|
|
config:
|
|
provider: Configuration
|
|
|
|
session:
|
|
provider: Singleton
|
|
provides: boto3.session.Session
|
|
kwargs:
|
|
aws_access_key_id: container.config.aws_access_key_id
|
|
aws_secret_access_key: container.config.aws_secret_access_key
|
|
aws_session_token: container.config.aws_session_token
|
|
region_name: container.config.aws_region_name
|
|
|
|
s3_client:
|
|
provider: Factory
|
|
provides: container.session.provided.client.call()
|
|
kwargs:
|
|
service_name: s3
|
|
|
|
sqs_client:
|
|
provider: Factory
|
|
provides: container.session.provided.client.call()
|
|
kwargs:
|
|
service_name: sqs
|