跳到主要内容

Amazon S3操作使用YAML

AmazonS3操作的YAML参数和示例列表

Amazon S3 YAML参数

名称类型描述
action
必填
StringThe ID of the action.
type
必填
StringThe type of the action. Should be set to AMAZON_S3.
bucket_name
必填
StringThe name of the Amazon S3 Bucket.
integration_hash
必填
StringThe 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
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.

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_hash: "5ddb7c180fb38be67bd78a88a"
deploy_tags:
- key: "revision"
value: "$BUDDY_EXECUTION_REVISION"
- key: "buddy_last_modification_type"
value: "$BUDDY_EXECUTION_FILE_MODIFICATION_TYPE"
deletion_disabled: true
deployment_excludes:
- "/tmp"
- "*.log"
deployment_includes:
- "/tmp/assets"
- "/tmp/styles"
信息

与AWS集成是Buddy的主要功能之一。在aws.amazon.com上查看基于云编程的优势