Pim-community-dev: Aws s3 question

Created on 30 Nov 2018  路  1Comment  路  Source: akeneo/pim-community-dev

Hi, I'm using akeneo pim 2.3.
I configure aws s3 bucket.
The images are stored in as3 but the urls always are:
"pim-url/media/show/...some_image.jpg"
I am doing something wrong?

app/config/config.yml (this config is ok?)

oneup_flysystem:
    adapters:
        catalog_storage_adapter:
            awss3v3:
                client: acme.s3_client
                bucket: somebucket
                prefix: media
        asset_storage_adapter:
            awss3v3:
                client: acme.s3_client
                bucket: somebucket
                prefix: media

services.yml

    acme.s3_client:
        class: Aws\S3\S3Client
        factory_class: Aws\S3\S3Client
        factory_method: factory
        arguments:
            -
                version: '2006-03-01'
                region: "us-east-1"
                credentials:
                    key: "KEY"
                    secret: "secret"
question

Most helpful comment

Hi,

It shouldn't matter the storage you are using the url will remain unchanged. There is a controller in Akeneo handling access to those files.

That allows thumbnails to be generated on the fly as well when needed,
https://github.com/akeneo/pim-community-dev/blob/2.3/src/Pim/Bundle/EnrichBundle/Controller/FileController.php#L77

https://github.com/akeneo/pim-community-dev/blob/2.3/src/Pim/Bundle/EnrichBundle/Resources/config/routing/media.yml#L1

so everything is fine the way you set it up, if you can see the images in the bucket s3.

Edit : Akeneo will generate thumbnails in the web directory, those won't be stored in the bucket s3 but it's fine as those can be deleted and akeneo will simply regenerate them.

>All comments

Hi,

It shouldn't matter the storage you are using the url will remain unchanged. There is a controller in Akeneo handling access to those files.

That allows thumbnails to be generated on the fly as well when needed,
https://github.com/akeneo/pim-community-dev/blob/2.3/src/Pim/Bundle/EnrichBundle/Controller/FileController.php#L77

https://github.com/akeneo/pim-community-dev/blob/2.3/src/Pim/Bundle/EnrichBundle/Resources/config/routing/media.yml#L1

so everything is fine the way you set it up, if you can see the images in the bucket s3.

Edit : Akeneo will generate thumbnails in the web directory, those won't be stored in the bucket s3 but it's fine as those can be deleted and akeneo will simply regenerate them.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kanduvisla picture kanduvisla  路  3Comments

gotgelf picture gotgelf  路  5Comments

grabelle picture grabelle  路  3Comments

henryktews picture henryktews  路  4Comments

ewallteam picture ewallteam  路  6Comments