https://github.com/cds-snc/cds-superset
AWS infrastructure and custom config used to run CDS's instance of Superset.
https://github.com/cds-snc/cds-superset
aws superset terraform
Last synced: 8 months ago
JSON representation
AWS infrastructure and custom config used to run CDS's instance of Superset.
- Host: GitHub
- URL: https://github.com/cds-snc/cds-superset
- Owner: cds-snc
- License: mit
- Created: 2023-12-18T16:05:31.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T13:48:21.000Z (about 1 year ago)
- Last Synced: 2024-10-29T15:59:42.898Z (about 1 year ago)
- Topics: aws, superset, terraform
- Language: HCL
- Homepage:
- Size: 339 KB
- Stars: 0
- Watchers: 12
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A modern, enterprise-ready business intelligence web application.
## Setup
### AWS
1. Update the configuration in `./docker/superset_config.py`.
2. Build the Docker image with `make build`.
3. Run Terraform apply with `make apply`.
4. Create the database and admin user:
```bash
# Connect to the ECS task
aws ecs execute-command --cluster superset \
--container superset \
--task "$ECS_TASK_ID" \
--region ca-central-1 \
--interactive \
--command "/bin/bash"
# Run database migrations
superset db upgrade
# Create admin user
superset fab create-admin \
--username admin\
--firstname Some \
--lastname Body \
--email some.body@cds-snc.ca \
--password "$ADMIN_PASSWORD"
# Setup roles/perms
superset init
```
### Localhost
You will need Docker and Docker Compose, and optionally VS Code devcontainers:
1. Run `make localhost`.
2. Username and password are `admin` at http://localhost:8088.
## Databases
Use the database connection details in `./databases` to connect to datasources.
## Development
To set up the development environment, run the following commands:
```bash
make install_dev && make fmt
```