Skip to content

alvindaiyan/aws-superset-cdk

Repository files navigation

TL;DR

This is a complement for project at quickstart-apache-superset. Because the original quickstart-apache-superset project is written in Cloudformation and it's hard to read and maintain.

What is apache superset

Please checkout the official website: https://superset.apache.org/.

How to run this project

Use cdk

  1. checkout the project by git.
  2. install projen
    npm install projen@latest
  3. run
    npx projen deploy superset-cdk-dev \                                                                                                                                                      
    --parameters superset-cdk-dev:supersetusername=your-user-name \
    --parameters superset-cdk-dev:supersetpassword=your-password \
    --parameters superset-cdk-dev:supersetexample=yes \
    --parameters superset-cdk-dev:supersetparamvpcid=the-existing-vpc-id \
    --parameters superset-cdk-dev:supersetparampublicsubnet1=the-existing-public-subnet \
    --parameters superset-cdk-dev:supersetparampublicsubnet2=the-existing-public-subnet \
    --parameters superset-cdk-dev:supersetparamprivatesubnet1=the-existing-private-subnet \
    --parameters superset-cdk-dev:supersetparamprivatesubnet2=the-existing-private-subnet \
    --parameters superset-cdk-dev:supersetparamclustername=supersetOnAWS \
    --parameters superset-cdk-dev:supersetsecretkey=your-superset-key

Custom Superset configration through superset_config.py

For configuration option please refer to the official website: https://superset.apache.org/docs/installation/configuring-superset

After deploying the stack you can create a custom superset_config.py in /app/superset_home.

  1. connect to the superset container
    aws ecs execute-command --cluster your-cluster-name --task task-id --container superset --command "/bin/bash" --interactive
  2. copy the content you want for the superset_config.py to your clipboard (cmd+C | ctrl+C)
  3. create a new config file in /app/superset_home
    cd /app/superset_home && cat > superset_config.py
  4. paste the clipboard content (cmd+V | ctrl+V)
  5. end file input (cmd+D)
  6. exit the container
    exit
  7. stop the container and it will automatically restart with the new configuration
    aws ecs stop-task --cluster your-cluster-name --task task-id

About

A ioc for apache superset on aws

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published