Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 999 Bytes

adapter_async_aws_s3.md

File metadata and controls

32 lines (26 loc) · 999 Bytes

Use the AsyncAwsS3 adapter

In order to use the AsyncAwsS3 adapter, you first need to create a S3 client service. This can be done with the following configuration. Read more about instantiating the S3 client at async-aws.com or use the AsyncAws SymfonyBundle.

services:
    acme.async_s3_client:
        class: AsyncAws\S3\S3Client
        arguments:
            - region: 'eu-central-1'
              accessKeyId: 'AKIAIOSFODNN7EXAMPLE'
              accessKeySecret: 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'

Set this service as the value of the client key in the oneup_flysystem configuration.

oneup_flysystem:
    adapters:
        acme.flysystem_adapter:
            async_aws_s3:
                client: acme.async_s3_client
                bucket: 'my_image_bucket'
                prefix: ''

More to know