Skip to content

DeployS3

Bastien Abadie edited this page Jun 5, 2019 · 1 revision

The deploy-s3 command allows you to publish any files on AWS S3. It was built to publish simple web frontends using a public S3 bucket and a Route53 DNS record toward that bucket.

This command works a bit differently than other commands as it does not use docker image, but a list of files. A typical frontend publication would work with two tasks:

  1. a frontend-build task uses any Docker image necessary to produce an HTML+CSS+Javascript set of artifacts (for example in public/frontend/)
  2. a frontend-publish task uses taskboot to publish the artifact from the previous task using that command:
taskboot deploy-s3 --artifact-folder=public/frontend --bucket=my-frontend-bucket

Secret configuration

You need to setup the AWS authentication tokens in your Taskcluster secret:

aws:
  access_key_id: ACCESSKEY
  secret_access_key: SECRETVALUE

This AWS user should of course have write access to the target bucket.

Arguments

Argument Type Description Sample values
--task-id Optional string, defaults to env variable TASK_ID set on Taskcluster The Taskcluster task id to use for dependent tasks lookups deadbeef1234
--artifact-folder Required string Artifact folder to retrieve the files to upload from. Must not end with / public/frontend
--bucket Required string The AWS S3 bucket name where the files will be uploaded. my-frontend-bucket
Clone this wiki locally