Key AWS S3 is an extension to the Key module.

This module provides a new key type for supporting authentication against the Amazon S3 service. This key will capture both the access and secret keys required for accessing the S3 cloud storage.

Requirements

Requires the Key module:
https://www.drupal.org/project/key

Install

Install key_aws_s3 using a standard method for installing a contributed Drupal
module, either by downloading the package or using composer command below:

composer require drupal/key_aws_s3

Usage

Follow the Key module documentation for getting and using keys.

Adding a key_select element to your form like below, in order to select your key.

You can apply a filter to select only amazon_s3_key related keys:

$form['aws_s3_auth'] = [
  '#type' => 'key_select',
  '#title' => $this->t('AWS S3 Auth'),
  '#key_filters' => ['type' => 'amazon_s3_key'],
];
Supporting organizations: 

Project information

Releases