Switch branches/tags
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
cloudwatch-publisher.js
collector-api.js
package.json
s3-publisher.js
template.yaml

README.md

Cloudformation template for Desole back-end deployment

This directory contains a Cloudformation template for the Desole collector API and standard publishers. Use this source code to create your own custom bundle for Desole backend.

To deploy using a ready-made template, check out the parent directory README.md

Prerequisites

  • NPM
  • An S3 Bucket for Deployment, in the same region where you would like to deploy Desole
  • AWS CLI (command line tools), configured to use your account

Deploying using AWS-CLI and CloudFormation

For a detailed list of supported parameters, check out template.yaml

  1. Install the dependencies
npm install
  1. Prepare and pack your code
npm run prepackage
  1. Package the template
aws cloudformation package --template-file template.yaml --output-template-file output.yaml
  1. Deploy the packaged template
aws cloudformation deploy --template-file output.yaml --capabilities CAPABILITY_IAM --stack-name <STACK NAME> 

You can also override CloudFormation template parameters by using --parameter-overrides <NAME>=<VALUE> after the deploy command. For a detailed list of supported parameters, check out template.yaml