andersundsehr / aus_driver_amazon_s3

Provides a TYPO3 FAL driver for the Amazon Web Service S3
GNU Lesser General Public License v3.0
20 stars 39 forks source link

Set credentials only if provided in the storage configuration #102

Closed m-knabe-reply closed 1 year ago

m-knabe-reply commented 2 years ago

If the credentials array-key exists in the configuration, the AWS SDK will always try to use that, even if key and secret are empty. By removing the credentials key completely, the S3 client will fall back to other authentication options:

  1. Load credentials from environment variables.
  2. Load credentials from a credentials .ini file.
  3. Load credentials from an IAM role

See: https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_configuration.html#credentials