Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 751 Bytes

s3.md

File metadata and controls

39 lines (29 loc) · 751 Bytes

AWS S3

ENV

Required ENV variables

AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY

Default configuration

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%'

Storage

aws.s3.storage.key:
    class: 'Landingi\AwsBundle\Aws\S3\S3Storage'
    arguments: ['@aws.s3.client.west', 'bucket-key']