Giter Site home page Giter Site logo

serverless-cubejs's Introduction

serverless-cubejs

Serverless Cube.js backend infrastructure on AWS.

Architecture

This project uses

  • API Gateway HTTP APIs for hosting the Cube.js backend API
  • Athena for querying data in S3
  • Aurora Serverless for pre-aggregations
  • ElastiCache for query result caching

All of that runs in a preconfigured VPC. You can also have a look at the stack diagram in docs/stack.drawio.

AWS pricing applies, please make yourself familiar with the pricing of the deployed resources BEFORE you deploy the stack. This will not be covered by the AWS Free Tier!

Usage

Prerequisites

You'll need an AWS account (obviously), and a readily installed Serverless framework, along with local AWS credentials.

Cube configuration

You need to adapt (or add) the schemas for your cube in the schema folder appropriately (see Cube.js docs).

Deployment

$ sls deploy --aurora-password YOUR_AURORA_PASSWORD --s3-data-bucket YOUR_S3_BUCKET_NAME --cube-secret YOUR_CUBE_SECRET

The default stage that will be used is dev. You can also specify if via the --stage commandline option.

Removal

$ sls remove

It's possible that you have to manually clean some resources, e.g. the S3 bucket with the Athena query results.

serverless-cubejs's People

Contributors

tobilg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

jimjoes sionelt

serverless-cubejs's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.