This guide describes how to provision the Scaleway infrastructure components required by the BigData Republic Open Data Platform and prepare Trino object storage configuration.
You will:
- Create / retrieve Scaleway API credentials
- Apply Terraform to provision the object storage and the Kubernetes cluster
- Prepare Trino configuration values and ENV variables
- Export kubeconfig environment variables for subsequent platform deployment
Install required tooling:
brew install terraform- Go to https://www.scaleway.com/ and create an account (if not already done)
- Generate secret key via https://console.scaleway.com/iam/api-keys
- When creating the key copy the Terraform > scaleway.auto.tfvars part and store it in a file
scaleway.tfvarsin thesecretsfolder
cd infra/scaleway
terraform init
terraform apply --vars-file=../../secrets/scaleway.tfvarscd ../../configs/trino
S3_ENDPOINT=https://iceberg.s3.nl-ams.scw.cloud \
S3_REGION=nl-ams \
S3_AWS_ACCESS_KEY=<read from terraform output> \
S3_AWS_SECRET_KEY=<read from terraform output> \
envsubst < values-template.yaml > values-scaleway.yamlPrepare ENV Variables used for the platform deployment:
export KUBE_CONFIG_PATH=$(realpath ../../secrets/scaleway-kubeconfig.yaml)
export KUBECONFIG=$KUBE_CONFIG_PATHContinue with the platform deployment