Required ENV
variables
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
parameters:
aws.region.west: 'eu-west-1'
services:
aws.credentials:
class: 'Aws\Credentials\Credentials'
arguments: ['%env(AWS_ACCESS_KEY_ID)%', '%env(AWS_SECRET_ACCESS_KEY)%']
Landingi\AwsBundle\Aws\S3\ClientFactory: ~
aws.s3.client.west:
class: Aws\S3\S3Client
factory: ['@Landingi\AwsBundle\Aws\S3\ClientFactory', 'build']
arguments:
- '@aws.credentials'
- '%aws.region.west%'
aws.s3.storage.key:
class: 'Landingi\AwsBundle\Aws\S3\S3Storage'
arguments: ['@aws.s3.client.west', 'bucket-key']