Deploy CUMULUS on LocalStack

CUMULUS Deploy

This instruction is based on [1] and NASA SE TIM workshop.

  • git clone https://github.com/nasa/template-deploy asdc-deploy
  • cd asdc-deploy
  • Optional: npm update -g
  • npm install
  • cd node_modules/@cumulus/deployment/app
  • edit cloudformation.template.yml
  • Fix 5.3 to '5.3' InstanceCount '1' to InstanceCount 1 AutomatedSnapshotHours '0' to AutomatedSnapshotHours 0
  • review config.yml

Cumulus LocalStack

This instruction if for Mac OS X

  • git clone https://github.com/nasa/cumulus.git
  • curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
  • $. ~/.bash_profile
  • cd cumulus
  • brew install yarn
  • nvm install
  • nvm use
  • yarn global add lerna
  • yarn install
  • yarn bootstrap
  • yarn build
  • yarn watch
  • npm init ava
  • cd packages/api
  • LOCALSTACK_HOST=localhost IS_LOCAL=true npm run test

Cumulus Docker

  • docker-compose up local [2] will hang on Mac OS X
  • If you create a lambda function using Serverless. S3 bucket cannot trigger the function using the following command.

    $awslocal s3 cp test.txt s3://input/test.txt

    The reason is that bucket owner and object owner is different.