Skip to content

PSake & Serverless Setup Guide

Sam Martin edited this page Mar 13, 2017 · 3 revisions

Prerequisites

  1. A Windows machine (Sorry, this is running PowerShell!)
  2. PowerShell > 5.0
  3. Node.js Install it here
  4. AWS Powershell Cmdlets
  5. PowerShell-Yaml Install-Module -Name powershell-yaml
  6. Pester (comes with PS 5.0 or Install-Module -Name pester
  7. PSake Install-Module -Name psake

Deployment Steps

  1. Clone repository
  2. Ensure you have credentials set for both the AWS PowerShell Cmdlets and Serverless
  3. Edit serverless-ephemera\config.yml to reflect the bucket names you want (if you're hosting your Ephemera website under a custom domain you'll want this reflected in the public_bucket_name as per this document
  4. Open a PowerShell console and CD to the root of the repository.
  5. Invoke-PSake -parameters @{stage='prod'}
  6. Wait!

Decommission Steps

  1. Follow steps 1-4 from the deployment steps
  2. Invoke-PSake -taskList destroy

Clone this wiki locally