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.
Please checkout the official website: https://superset.apache.org/.
- checkout the project by git.
- install projen
npm install projen@latest
- 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
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.
- connect to the superset container
aws ecs execute-command --cluster your-cluster-name --task task-id --container superset --command "/bin/bash" --interactive
- copy the content you want for the superset_config.py to your clipboard (cmd+C | ctrl+C)
- create a new config file in /app/superset_home
cd /app/superset_home && cat > superset_config.py
- paste the clipboard content (cmd+V | ctrl+V)
- end file input (cmd+D)
- exit the container
exit
- stop the container and it will automatically restart with the new configuration
aws ecs stop-task --cluster your-cluster-name --task task-id