Skip to main content
A sandbox is configured in a sandbox.toml file in the root of your app config directory. It points to a Terraform module (public or private repo) and passes variables to configure the infrastructure. To learn more about sandboxes, see the Sandboxes concept page.

Basic Configuration

sandbox.toml
sandbox.tfvars
You can use either a public repo (public_repo block) or a private GitHub repo (connected_repo block). Read more about VCS configuration here.

Using Default Values

Add a vars block to sandbox.toml or use the sandbox.tfvars file for default values shared across all installs:
sandbox.toml

Using Inputs

Define an input in inputs.toml and reference it in sandbox.toml:
inputs.toml
sandbox.toml

Sandbox Outputs

Sandbox outputs are accessible to all components through variables:
components/app.toml
Common outputs include:
  • account.id - The AWS Account ID
  • account.region - The AWS Region
  • vpc.id - The VPC ID
  • cluster.name - The EKS Cluster name
  • cluster.endpoint - The EKS Cluster endpoint
  • ecr.repository_url - The ECR repository URL
  • nuon_dns.public_domain.name - The public root domain
  • nuon_dns.internal_domain.name - The internal root domain
  • namespaces - Namespaces created in the cluster
Each nuon_dns domain is an object rather than a string: name holds the hostname, alongside zone_id and nameservers. Reference .name when you want the domain itself. See the outputs.tf for the full list.

Custom Sandboxes

You can fork a managed sandbox or create your own. Point your sandbox.toml to your repo:
sandbox.toml
If you are considering a custom sandbox, we would love to hear about your use case. Please contact us.