S3 Pipeline

Overview

Foremast supports the ability to setup S3 infrastucture and build a pipeline around S3 deployments. This was designed to be very similar to the default EC2 pipeline. It requires the same configuration files and general setup.

S3 Specific Setup

  1. Look at the Getting Started guide for basic setup. The S3 process will be very similar
  2. Look at the s3 Block configurations in pipeline.json and application-master-$account.json.
  3. In pipeline.json set "type" : "s3" in order for Foremast to treat the application as an S3 deployment.

S3 Pipeline Example

  1. Prepare a local folder containing your desired S3 deployment (commonly an uncompressed tar.gz)

  2. Trigger Spinnaker S3 pipeline

  3. Spinnaker runs “Infrastructure Setup S3”

    1. Sets up S3 bucket
    2. Attaches S3 bucket policies and metadata
    3. Creates friendly DNS record for s3 bucket if website enabled
  4. Spinnaker runs a “Deploy S3” stage

    1. This stage uploads the local folder containing your artifacts to the created S3 bucket
  5. Manual Judgement checkpoint for deploying to the next environment

  6. Repeat steps 3-5 for each desired environment

../_images/s3_example.png