Amazon S3 with YAML

YAML parameters for Amazon S3

You can find the list with common parameters for all Buddy actions here.

NameTypeDescription
action
Required
StringThe ID of the action.
type
Required
StringThe type of the action. Should be set to AMAZON_S3.
bucket_name
Required
StringThe name of the Amazon S3 Bucket.
integration_id
Required
IntegerThe ID of the integration.
input_typeStringDefines whether the files are deployed from the repository or from the build filesystem. Can be one of SCM_REPOSITORY or BUILD_ARTIFACTS.
local_pathStringThe path in the repository.
aclStringAccess control lists (ACLs) enable you to manage access to buckets and objects. It defines which AWS accounts or groups are granted access and the type of access.
remote_pathStringThe absolute or relative path on the remote server.
deployment_excludesString[]The paths and/or files that will be left our during the deployment.
deployment_includesString[]The exceptions from the ignore patterns set in deployment_excludes.
expires_dateISO8601 UTC dateSpecifies the expiration period for the objects (how long they stay in the cache).
cache_controlStringSpecifies how long objects stay in the cache.
skip_content_type_settingBooleanWhen set to true all files will have their mime-types set to application/octet-stream.
reduced_redundancyBooleanSet to true if you want to use Reduced Redundancy Storage

YAML example for Amazon S3

actions:
- action: "Upload files to AWS S3/buddy"
type: "AMAZON_S3"
input_type: "SCM_REPOSITORY"
local_path: "/assets"
bucket_name: "buddy"
acl: "PUBLIC_READ_WRITE"
reduced_redundancy: true
skip_content_type_setting: true
expires_date: "2017-12-31T23:00:00.000Z"
cache_control: "max-age=3600"
integration_id: 1
deployment_excludes:
- "/tmp"
- "*.log"
deployment_includes:
- "/tmp/assets"
- "/tmp/styles"