Amazon S3 with YAML

YAML parameters for Amazon S3

NameTypeDescription
action RequiredStringThe ID of the action.
type RequiredStringThe type of the action. Should be set to AMAZON_S3.
bucket_name RequiredStringThe name of the Amazon S3 Bucket.
integration RequiredStringThe 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 out 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
deploy_tagsTag[]Defines tags for files categorization as a key value pairs list.
deletion_disabledBooleanIf set to true, files are not deleted if changeset indcates that.
content_encodingStringContentEncoding that will be set for the deployed files e.g. "gzip".

YAML example for Amazon S3

yaml
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: "my_integration" deploy_tags: - key: "revision" value: "$BUDDY_RUN_COMMIT" - key: "buddy_last_modification_type" value: "$BUDDY_EXECUTION_FILE_MODIFICATION_TYPE" deletion_disabled: true deployment_excludes: - "/tmp" - "*.log" deployment_includes: - "/tmp/assets" - "/tmp/styles"
Hint
Integration with AWS is one of the key features of Buddy. Check all the benefits of cloud-based programming at aws.amazon.com

Last modified on Oct 29, 2024