Terraform on AWS
Create an EKS cluster and install BoltMCP behind HTTPS with a single terraform apply.
The Terraform stack in the terraform/aws directory of the boltmcp repository:
- creates a VPC and an EKS Auto Mode cluster
- prepares the cluster:
gp3StorageClass,boltmcpnamespace, image pull secret, and the three application Secrets with random values - serves BoltMCP over HTTPS through an Application Load Balancer, using a wildcard ACM certificate validated in Route 53
- creates the DNS records for
web.,auth.,server.andinspector.<domain>through external-dns - sets up Vault auto-unseal with an AWS KMS key
- installs the BoltMCP Helm chart
Prerequisites
On the workstation you're installing from, you'll need:
terraformv1.9+ · Install TerraformawsCLI, logged in to the target account (aws login). Terraform uses it to authenticate to the cluster. · Install awskubectlv1.28+, for the steps after the apply · Install kubectlhelmv3.12+ (optional, for troubleshooting) · Install helm- Your BoltMCP access key at
keys/boltmcp-key.jsonin theboltmcprepository
Check you're logged in to the right account:
aws sts get-caller-identityDNS
You need a public Route 53 hosted zone in the same AWS account that contains your BoltMCP domain. For example, the zone example.com for the domain boltmcp.example.com.
If your domain is hosted by another DNS provider, delegate just the BoltMCP subdomain to Route 53:
Create a hosted zone for the subdomain:
aws route53 create-hosted-zone \
--name boltmcp.example.com \
--caller-reference "boltmcp-$(date +%s)" \
--query DelegationSet.NameServersThis prints the zone's four name servers.
At your DNS provider, add an NS record for boltmcp (the subdomain) in the example.com zone, with the four name servers as its values.
Wait until the subdomain resolves to the Route 53 name servers:
dig NS boltmcp.example.com +shortThen, when you configure the stack below, set route53_zone_name to the subdomain (boltmcp.example.com), the same as domain.
Configure
From the root of the boltmcp repository:
cd terraform/aws
cp terraform.tfvars.example terraform.tfvarsEdit terraform.tfvars:
region = "eu-west-2"
domain = "boltmcp.example.com"
route53_zone_name = "example.com"
admin_email = "admin@example.com"
registry_key_path = "../../keys/boltmcp-key.json"
chart_version = "0.6.3"| Variable | Description |
|---|---|
domain | Becomes the chart's global.domain. Recommended: the boltmcp subdomain of your company's domain. |
route53_zone_name | The hosted zone containing domain: example.com if Route 53 hosts your whole domain, or boltmcp.example.com if you delegated the subdomain. It holds the certificate validation records and the BoltMCP records. |
admin_email | Email of the first admin user. Must be a real address. |
registry_key_path | Path to your BoltMCP access key, relative to terraform/aws. |
chart_version | The latest BoltMCP release you've been given. |
EKS Auto Mode scales nodes to fit the pods, so there's no node count or machine type to choose. See the stack's README for every input, including how to use an existing VPC and pass extra chart values through helm_values.
Terraform generates the application Secrets, so their values are stored in Terraform state. For anything beyond an evaluation install, configure an encrypted, access-controlled remote backend before applying.
Apply
terraform init
terraform applyThe first apply takes about 15 minutes.
Expect roughly $8 per day in AWS charges while the stack is running. That covers the EKS control plane, one c7i-flex.large node, the NAT gateway, the load balancer, public IPs and storage. When you've finished testing, run terraform destroy to stop billing (see Uninstall).
Finish the install
Print the remaining steps:
terraform output next_steps