Skip to content

datreeio/ecs-fargate-template

Repository files navigation

webservicetemplate JavaScript Style Guide

Web Service Template

Instructions

  1. Rename the cloned dir to your service name

  2. Coveralls

    • Enable in coveralls.io and add the repo token to .coveralls.yml
  3. update .git/config with you repo details

  4. delete GIT_PLACEHOLDER_DELETE it's there only to create the lib directory

  5. ECS/ECR

    • Create a registry with the service name
    • Create a task definision in ECS us-east-1 (N.Virginia) region - with the service name
  6. Travis

    • Enable the repo in travis
    • DO NOT USE YOU YOUR OWN KEYS
    • travis encrypt AWS_ACCESS_KEY_ID=<AWS_ACCESS_KEY_ID> --add
    • travis encrypt AWS_SECRET_ACCESS_KEY=<AWS_SECRET_ACCESS_KEY> --add
    • travis encrypt GH_TOKEN=<GH_TOKEN> --add
    • travis encrypt NPM_TOKEN=<NPM_TOKEN> --add
  7. find and replace all occurences of webservicetemplate with your service name.

  8. Update README.md

  9. Update package.json with the service name

Secrets Configuration - SSM + KMS

  1. Create a KMS encryption key with the service name
  2. Create a secret parameter with the KMS key with the service name as an alias
  3. config/configuration.js pulls the secrets and decrypts them before npm start and npm test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published