Spin up a GoodData.CN deployment in the cloud in just a few minutes.
This deployment is for evaluation only – not production. It can be used as a source of inspiration for a production-level setup, but this project is not versioned and is not officially supported by GoodData in production.
Terraform provisions:
- Cloud network with public & private subnets across multiple zones
- Managed PostgreSQL for GoodData metadata
- Object storage for cache, data sources, and exports
- Managed Kubernetes cluster
- GoodData.CN
- Apache Pulsar (for messaging)
- Ingress controller
- Other cloud-specific prerequisites
- Install the following CLI utilities:
- Have your GoodData.CN license key handy (your GoodData contact can help you with this)
Note: If you want to skip the installation of all of the CLI utilities, a VS Code Dev Containers configuration is provided in this repo. Just install the extension into any compatible IDE and the repo will reopen with all utilities installed.
By default Terraform creates a new VPC. If your IT team has already provisioned a VPC for the PoC, you can deploy into it instead by setting three variables in aws/settings.tfvars:
existing_vpc_id = "vpc-0123456789abcdef0"
existing_private_subnet_ids = ["subnet-aaa", "subnet-bbb"]
existing_public_subnet_ids = ["subnet-ccc", "subnet-ddd"]Requirements:
- The VPC must have DNS hostnames and DNS support enabled.
- Provide at least 2 private and 2 public subnet IDs, spanning at least 2 availability zones.
- Private subnets are used for EKS nodes and RDS; public subnets are used for load balancers.
- Subnets must carry the following tags for the AWS Load Balancer Controller and EKS to discover them:
- Public subnets:
kubernetes.io/role/elb = 1andkubernetes.io/cluster/<deployment_name> = shared - Private subnets:
kubernetes.io/role/internal-elb = 1andkubernetes.io/cluster/<deployment_name> = shared
- Public subnets:
-
Clone the repo:
git clone https://github.com/gooddata/gooddata-cn-terraform.git -
Copy the sample variables file for your provider and customize it:
cp aws/settings.tfvars.example aws/settings.tfvars # or (for azure) cp azure/settings.tfvars.example azure/settings.tfvars # or (for local) cp local/settings.tfvars.example local/settings.tfvarsThe example file has good defaults but you may want to modify it based on your needs.
-
Choose your provider and
cdinto its directory:cd aws,cd azure, orcd local -
Authenticate to your cloud provider's CLI:
- For AWS: authenticate the profile named by
aws_profile_nameinsettings.tfvars, since Terraform uses it regardless of your default profile. For an IAM Identity Center (SSO) profile that isaws sso login --profile <aws_profile_name>; for access keys it isaws configure --profile <aws_profile_name>. - For Azure:
az login - Azure note: Terraform's Kubernetes authentication uses
kubeloginwith your Azure CLI session.
- For AWS: authenticate the profile named by
-
Initialize Terraform:
terraform init -
Review what Terraform will deploy:
terraform plan -var-file=settings.tfvars -
Run Terraform:
-
For cloud deployments:
terraform apply -var-file=settings.tfvars -
For local deployments, first create the cluster, then apply everything else:
terraform apply -target=null_resource.k3d_cluster -var-file=settings.tfvars terraform apply -var-file=settings.tfvars
-
-
Once everything has been deployed, configure kubectl:
../scripts/configure-kubectl.sh -
If you set
gdcn_orgs, Terraform already created the organizations. Otherwise, you can create those manually now. -
Configure authentication according to your needs:
- To use an external OIDC provider (recommended for anything beyond local testing), follow the Set Up Authentication guide.
- For quick testing with the default IdP (Dex), create one or more users by staying in the provider directory (
aws,azure, orlocal) and running../scripts/create-user.sh. If Terraform created the organization, the script will automatically read the admin credentials from the Secretgooddata-cn/gdcn-org-admin-<org_id>.
-
(Optional) If you enabled the observability stack (
enable_observability = true), create Grafana users by running../scripts/create-grafana-user.shfrom your provider directory. The script creates a Grafana user and optionally promotes them to admin. It automatically reads the Grafana admin credentials from the Kubernetes secret. -
Finally, open your GoodData.CN URL and log in.
- For cloud deployments: open
https://<gdcn_org_hostname>(exact address in Terraform output). - For local deployments: open
https://gooddata.localhost(you will see a browser warning because the certificate is self-signed).
- For cloud deployments: open
To upgrade GoodData.CN to the latest version, follow these steps:
-
Check for any updates to this repo and pull them.
-
Open
settings.tfvarsand change thehelm_gdcn_versionvariable to the latest value. -
Run Terraform:
terraform apply -var-file=settings.tfvars
Traefik replaces ingress-nginx. Rename ingress_nginx_behind_l7 to ingress_behind_l7 and helm_ingress_nginx_version to helm_traefik_version in settings.tfvars. Set ingress_controller = "traefik" if you set it before.
During terraform apply, Terraform removes the ingress-nginx namespace and its load balancer. It then creates Traefik with a new load balancer. Expect a short outage, and update your DNS record if it does not follow the load balancer automatically.
Ingresses that the GoodData.CN organization controller already created keep ingressClassName: nginx until something changes them. A one-time Kubernetes Job (ingress-class-migration in the traefik namespace) changes only those Ingresses to traefik. It does nothing on a new installation. To check, run this command and confirm that no row shows nginx:
kubectl get ingress -A -o custom-columns=NS:.metadata.namespace,NAME:.metadata.name,CLASS:.spec.ingressClassNameIf gdcn_helm_extra_values sets ingress.ingressClassName: nginx, remove that setting before the upgrade. It overrides the Traefik class, so the organization controller would create new Ingresses with class nginx again. If ingressClassName is the only key under ingress, remove the ingress: key too: an empty ingress: is null and deletes the chart's ingress values.
To delete all resources associated with the GoodData POC, follow these steps:
- Run Terraform:
terraform destroy -var-file=settings.tfvars
Set enable_gdcn_autoscaling = true (requires chart >= 4.12.0) to horizontally autoscale the GoodData.CN services. See Configure Autoscaling in GoodData.CN for prerequisites, which services scale, and how to tune or disable it.
Set enable_observability = true and observability_hostname in your settings.tfvars to deploy the observability stack (Prometheus, Loki, Tempo, and Grafana).
After terraform apply, Grafana is available at https://<observability_hostname>. A GoodData-CN health dashboard is automatically provisioned and can be found under the GoodData-CN folder in Grafana.
To import the dashboard into a standalone Grafana instance, upload modules/k8s-common/dashboards/gooddata-cn-overall-health.json via Dashboards → Import and replace the datasource UIDs (prometheus → your Prometheus UID, loki → your Loki UID).
Set enable_llm_observability = true, llm_observability_hostname and langfuse_admin_email in your settings.tfvars to deploy Langfuse and send traces from the gen-ai services to it. This also requires enable_ai_features = true, since those services are what produce the traces. Langfuse brings its own ClickHouse, Keeper, and Valkey pods, so expect it to add a few GB of memory to the cluster.
After terraform apply, Langfuse is available at https://<llm_observability_hostname>. Traces appear within a few seconds of using any AI feature, tagged with langfuse_tracing_environment (dev unless you change it).
An admin user is created on the first apply, and self-registration is disabled, so this is the only account. Read its credentials from the Terraform output in your provider directory:
terraform output langfuse_admin_email
terraform output -raw langfuse_admin_passwordInvitations are not wired up (Langfuse blocks sign-up before it checks them), so treat this output as a shared deployment secret and keep it within the team that already has cluster access.
Internal only — the registry is unreachable outside GoodData. Leave these unset to install the released chart.
<registry>is in the internal deployment docs.
-
Run the adhoc: Build pipeline. You can set
deploy_to_adhoc=falsesince we'll deploy here instead. -
Copy the chart version from its Generate version used by chart/images step. The
<sha>in it is also the image tag. -
Add to
settings.tfvarsin any environment:internal_chart_repository = "oci://<registry>/helm/gooddata/adhoc" helm_gdcn_version = "0.1.<timestamp>+<sha>" internal_registry_server = "<registry>" internal_registry_aws_profile = "<profile>" # The chart pins image tags but not the registry, and ships no UI tags at all. # Without both of these, components resolve to Docker Hub (no branch builds are # published there) and the UI to an empty tag. gdcn_helm_extra_values = <<-EOT image: repositoryPrefix: <registry>/nas-testing analyticalDesigner: { image: { repositoryPrefix: gooddata, tag: "<released-version>" } } dashboards: { image: { repositoryPrefix: gooddata, tag: "<released-version>" } } homeUi: { image: { repositoryPrefix: gooddata, tag: "<released-version>" } } hostApplication: { image: { repositoryPrefix: gooddata, tag: "<released-version>" } } webComponents: { image: { repositoryPrefix: gooddata, tag: "<released-version>" } } EOT
-
Run
terraform apply -var-file=settings.tfvars
Reach out to your GoodData contact and they'll point you in the right direction!