This module will be removed from Salt in version 3009 in favor of the boto Salt Extension.
Connection module for Amazon S3 using boto3
New in version 2018.3.0.
This module accepts explicit AWS credentials but can also utilize IAM roles assigned to the instance through Instance Profiles or it can read them from the ~/.aws/credentials file or from these environment variables: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY. Dynamic credentials are then automatically obtained from AWS API and no further configuration is necessary. More information available at:
If IAM roles are not used you need to specify them either in a pillar or in the minion's config file:
A region may also be specified in the configuration:
If a region is not specified, the default is us-east-1.
It's also possible to specify key, keyid and region via a profile, either as a passed in dict, or as a string to pull from pillars or minion config:
Get metadata about an S3 object. Returns None if the object does not exist.
You can pass AWS SSE-C related args and/or RequestPayer in extra_args.
salt myminion boto_s3.get_object_metadata \
Upload a local file as an S3 object.
salt myminion boto_s3.upload_file \