AWS S3 Plugin
implementation(group: 'org.vividus', name: 'vividus-plugin-aws-s3', version: '0.2.9')
The plugin will search for credentials using the default credential provider chain in the following order:
In system environment variables:
In the properties:
Web Identity Token credentials from the environment or container.
In the default credentials file (the location of this file varies by platform).
Credentials delivered through the Amazon EC2 container service if the
AWS_CONTAINER_CREDENTIALS_RELATIVE_URIenvironment variable is set and security manager has permission to access the variable.
In the instance profile credentials, which exist within the instance metadata associated with the IAM role for the EC2 instance. This step is available only when running your application on an Amazon EC2 instance, but provides the greatest ease of use and best security when working with Amazon EC2 instances.
See the official "Working with AWS Credentials" guide to get more details.
Retrieve the object by key from the provided S3 bucket and save its content to a variable. The specified bucket and object key must exist, or an error will result.
When I fetch object with key `$objectKey` from S3 bucket `$bucketName` and save result to $scopes variable `$variableName`
$objectKey- the key under which the desired object is stored
$bucketName- the name of the bucket containing the desired object
$variableName- the variable name
When I fetch object with key `/path/file.json` from S3 bucket `some-bucket-name` and save result to scenario variable `my-json-var`