Validate on AWS
Self-Hosted Only
Validating NetBlueprint Forge on AWS
Copyright (c) 1998-2026 DigitalPrez, LLC. All rights reserved.
The first real deployment on AWS, in your own account: one route from an empty account to a running instance, the checks that are AWS’s own, and for each the open item of README.md (the guide) that a pass closes. These are “your cloud’s steps” of ../VALIDATE.md. Written 2026-11-22.
Status and How to Use It
Every command comes from reading the guide, the modules and AWS’s documentation (Sources). A command that is wrong is itself a finding: note it and go on. When a check fails, record what you saw; the fix belongs in the files of this repository, not in a change made by hand.
- Read “What you need” and set the variables.
- Do one route from its first step to its last: E1 to E20 (the cluster route, the main one) or F1 to F18. Part 1 of
../VALIDATE.mdis done at E2 or F2. Part 2 starts when E6 or F6 passes; the steps after that say how each “as your cloud’s steps say” is done. Its optional S1 to S7 have a section of their own, “The sign-in registrations”. - Record every result in “Results” at the end. A pass closes the open item its row names.
What You Need
- An IAM role or user of your own, not the root user, that may create what P1 of the guide lists and also KMS keys, ACM certificates, load balancers, log groups, AWS Backup vaults and, on the serverless route, Cloud Map namespaces; read CloudTrail’s event history; and use CloudShell with a VPC environment. In an account of your own an administrator role is the simple answer. Whoever applies becomes the cluster’s administrator (E3), so use one identity throughout.
- Two DNS names in a zone you can change:
$Dand$OPS(guide, P3). - One route at a time in one account and region: both roots make a VPC and the repositories
forge/apiandforge/worker. - Money. A NAT gateway is billed from E1 or F1; the database, the cache, the load balancer and the cluster from E3 or F4, until E20 or F18.
Where the commands run: bash on Linux, in one place from start to end, because OpenTofu’s state stays in the folder where tofu apply ran (the roots name no backend). It holds every generated password (guide, P4): show it to nobody and delete it after the last step.
- AWS CloudShell (checked in its documentation, not run). It has the AWS CLI, Docker, kubectl, jq, git and psql; 1 vCPU, 2 GiB, and 1 GB that lasts, in
$HOME. OpenTofu and Helm are not there: unpack their Linux amd64 binaries into~/bin(opentofu.org and helm.sh say how; not checked here). A session ends after 20 to 30 minutes without a key press, whatever is running: press a key now and then during a long apply. Iftofu initruns out of space,export TF_DATA_DIR=/tmp/tofufirst: the providers then live outside$HOMEand are fetched again each session. Not confirmed in documentation: that its Docker has buildx and room for these images, and that it has the Session Manager plugin. - A Linux or macOS machine of your own with Docker and the tools of P2. Not checked.
Git Bash on Windows was not checked for the whole run: it rewrites arguments that begin with /, such as /keys/... and the log groups’ names, unless MSYS_NO_PATHCONV=1 is set.
Getting the source there. The repository has no remote, and the engine archive is in .local/, which git ignores. On the development machine, in the repository’s root, with everything committed (git archive takes only what is committed):
git archive --format=tar.gz --prefix=forge/ -o ../forge-src.tar.gz HEADIn CloudShell choose Actions, Upload file, once for forge-src.tar.gz and once for the archive worker/engine.lock.json names (.local/netblueprint-forge-0.20.0.zip today; from 0.14.0 on the archive is not published, so take it from the skill repository’s own dist folder, as the lock’s source says). Both land in $HOME. Your source then sits in CloudShell’s storage in your own account, for 120 days after your last session in that region or until you delete it (Actions, Delete). Unpack it, and set the variables, again in every new session. Every tofu command of a route runs in that route’s folder.
cd ~ && tar -xzf forge-src.tar.gz && mkdir -p forge/.local && mv netblueprint-forge-*.zip forge/.local/ # onceI=acme; D=acme.example.com; OPS=ops.acme.example.com # as in ../VALIDATE.mdN=forge # the modules' nameTAG=0.1.0 # the release being installedADMIN=you@example.com # the first administrator's address: yoursexport AWS_REGION=us-east-1 # the region in my.tfvarsREGISTRY=$(aws sts get-caller-identity --query Account --output text).dkr.ecr.$AWS_REGION.amazonaws.comC=$N-$I # the serverless route's ECS clusterSecrets. On each route two commands hand you a secret: the first operator’s password (E7, F7) and the invitation link (E8, F8). Each pipes it to $CLIP, the command that copies its input to the clipboard of the machine your browser is on: pbcopy on macOS, wl-copy or xclip -selection clipboard on Linux. CloudShell has no clipboard. So run the lines marked # clipboard in a terminal on your own machine, signed in as the same IAM role or user, with the AWS CLI and with the variables, the functions and the TASK those lines use set there too. E7 and E8 also need kubectl and aws eks update-kubeconfig --region "$AWS_REGION" --name "$N"; F7 needs the Session Manager plugin. In Git Bash on Windows set CLIP=clip and export MSYS_NO_PATHCONV=1 first.
The Cluster Route (EKS)
| # | Step | Pass When | Proves |
|---|---|---|---|
| E1 | The first plan and apply, with no instances. It is the first real plan these modules have had | The plan says 29 to add (27 in the network, the two repositories) and nothing to change or destroy; the apply ends with Apply complete |
The modules plan and apply in a real account. If it fails, record the whole error, the resource address it names, whether it was the plan (a fault in the modules) or the apply (a quota, a right, a name already taken), and tofu version. Begins R1 |
| E2 | Part 1 of ../VALIDATE.md, I1 to I6, in ~/forge. Then push, and write the two printed lines into my.tfvars as api_image and worker_image |
I1 to I6 pass; both pushes end; each scan is COMPLETE, and you have read its counts |
The images build where Docker runs; ECR takes them and scans on push. A second push under one TAG is refused (ImageTagAlreadyExistsException): raise TAG. R10 (signing) stays open |
| E3 | Set the instance in my.tfvars, plan and apply (allow 40 minutes). Add the two records of certificate_validation to the zone |
Apply complete; the access entries include your role’s ARN; the cache’s engine is valkey, and its primary endpoint is the host the secret names; the certificate is ISSUED with both names (the wait gives up after some minutes: run it again) |
The platform and an instance apply. ElastiCache sets the primary endpoint for Valkey. EKS takes the caller’s role as an access entry; a role with a path is proved only if you signed in through IAM Identity Center, otherwise record the kind of principal. Closes R14 in part |
| E4 | Connect, and apply the two manifests | Both apply without error; kubectl get nodes answers (no nodes yet is normal); the ConfigMap reads true; the node class’s terms name the security group the last line prints |
Your access entry works; the IngressClass alb exists; enforcement of NetworkPolicy is asked for; pods will connect from the group the database, the cache and EFS let in, which A1 then proves by use. Closes R14 in part |
| E5 | Install with the chart: the block of step 3 of the guide, as it is written, then the two lines below | The secret and the ConfigMap are made; forge-api is ready within 15 minutes and two workers run; the claim forge-keys is Bound; the Ingress has an address |
The chart installs on Auto Mode. The EFS CSI driver mounts without IAM. The API verified RDS against the bundle at that address, ran the releases and started with its KMS settings. Not ready: record kubectl -n forge-$I describe pod -l app.kubernetes.io/component=api and the end of kubectl -n forge-$I logs deploy/forge-api. Closes R4 (commercial regions), R14 in part |
| E6 | Point $D and $OPS at the Ingress’s address with a CNAME each, then the loop |
Both lines end in 200, with no certificate error |
Both names reach the one load balancer, and its certificate covers both. Now start Part 2. A1 to A4, A7 to A9, A11, A15 and A16 need nothing more from this page |
| E7 | A5. Switch the chart’s keys reader on, copy the password, sign in, delete the file, do E16, switch it off | As A5. After rm, E16’s listing no longer has first-operator-password.txt |
The reader runs as the file’s owner, reads and deletes through kubectl exec, and the password reaches no log and no screen |
| E8 | A6. set-up with kubectl exec |
exit 0; the two lines shown name the organization and your address; the link is on the clipboard |
The API’s commands run in its own container, which has no shell. Closes R2 |
| E9 | The way back in: operator reset, then E7 again |
exit 0; the file is back; the console asks again for a password of your own and an authenticator app |
An operator who is locked out can be let back in on this route |
| E10 | After A9: check-engine |
exit 0 |
The check after an engine update runs here. Exit 137 means the API’s memory limit, which the command shares, was too small: record it |
| E11 | A10, A12, A13. Two replicas; delete one pod; back to one for A13 and A14 | Each rollout ends; a new pod takes the deleted one’s place | The chart scales the API, and a pod can go |
| E12 | A17. The worker’s isolation, with a control | Both worker lines say exit 0; the control pod reaches Succeeded |
The worker reaches nothing, by name or by address, while the same image in a namespace with no policy does: the chart’s NetworkPolicy is enforced. exit 1: enforcement is off; see E4 and step 3 of the EKS guide’s page. A control that fails proves nothing: record it. Closes R3 |
| E13 | Pod Identity on the API pod | One association, for forge-api; the pod has the volume eks-pod-identity-token and both variables |
EKS gives the pod its credentials although the chart sets automountServiceAccountToken: false. Missing: the fix is in templates/api.yaml. Closes R13, with E14 |
| E14 | After A8, and again after A12 and one more sign-in with a code: the key’s use in CloudTrail (events can take 15 minutes to appear) | An Encrypt and, later, a Decrypt, each by a session of the role forge-acme-api, each ok, each with purpose forge-dek, an organization and a version in the context |
The API wraps and unwraps data keys under the instance’s key, as its own role, with the context its policy requires |
| E15 | The load balancer as Auto Mode made it | internet-facing in the three public subnets; 3600 and append; one listener, 443 HTTPS ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09 with the instance’s certificate; ip 8080 /api/health; stickiness true, lb_cookie, 86400; deregistration 60 |
Which annotations of values-aws.yaml Auto Mode honoured: each value that differs names one it did not. Closes R9 |
| E16 | While the reader of E7 runs: the folder of keys | /keys is drwx------, and it and every file are owned by 1654 1654; the mount’s source is 127.0.0.1:/, type nfs4; the policy has MountThroughMountTargets (Allow) and RefuseWithoutTls (Deny); the access point reads 1654 1654 /keys 700 |
The access point forces the API’s user, and the mount goes through the TLS tunnel on the node. That a pod sees the 127.0.0.1 source is not confirmed in documentation. Closes R14 in part |
| E17 | Logs in CloudWatch | The add-on is ACTIVE; /aws/containerinsights/forge/application is the only group under that prefix, reads 90, and holds lines of the API; no pod of the instance has an init container or an OTEL_ variable |
Auto Mode ships no container logs by itself: the CloudWatch Observability add-on’s Fluent Bit does, on Auto Mode’s nodes, with its metrics and Application Signals off. Another group, or an instrumented pod, means a setting that switches an extra off was not taken: record the add-on’s version. Closes R6 |
| E18 | The database login: D1 and D2 | As D2 | As D2 |
| E19 | A18. Restore to a new server, compare with D3, then delete it | D3 passes; the last wait ends without error | A backup restored once. That a restored server keeps the login’s password is not confirmed in documentation |
| E20 | A19. Take everything down | Destroy complete; the key is PendingDeletion with a date 30 days on; the last line lists at most that key and the secret, neither billed while it waits |
The modules remove what they made, once each guard of the guide’s “Taking an instance, or everything, down” is lifted. Anything else tofu destroy trips over is a finding |
For E1 to E3. F1 is E1 in deploy/aws/serverless:
cd ~/forge/deploy/aws/kubernetescp example.tfvars my.tfvars # set region; the placeholder digests may stay for nowtofu inittofu plan -var-file=my.tfvars -var 'instances={}' -out=first.tfplantofu apply first.tfplan# E2, after I1 to I6:cd ~/forgeaws ecr get-login-password --region "$AWS_REGION" | docker login --username AWS --password-stdin "$REGISTRY"docker buildx build --platform linux/amd64 -f deploy/compose/Dockerfile.api -t "$REGISTRY/$N/api:$TAG" --push .docker buildx build --platform linux/amd64 -f deploy/compose/Dockerfile.worker -t "$REGISTRY/$N/worker:$TAG" --push .for r in api worker; do echo "$REGISTRY/$N/$r@$(aws ecr describe-images --repository-name "$N/$r" --image-ids imageTag="$TAG" --query 'imageDetails[0].imageDigest' --output text)" aws ecr describe-image-scan-findings --repository-name "$N/$r" --image-id imageTag="$TAG" --query '[imageScanStatus.status,imageScanFindings.findingSeverityCounts]'done# E3, in the route's folder. The line that reads the secret prints the cache's host and port only:tofu plan -var-file=my.tfvars -out=instance.tfplan && tofu apply instance.tfplantofu output certificate_validationaws eks list-access-entries --cluster-name "$N" --query accessEntries --output text; aws sts get-caller-identity --query Arn --output textaws elasticache describe-replication-groups --replication-group-id "$N-$I" --query 'ReplicationGroups[0].[Engine,NodeGroups[0].PrimaryEndpoint.Address]' --output textaws secretsmanager get-secret-value --secret-id "$N/$I/settings" --query SecretString --output text | jq -r '.Cache__Redis | split(",")[0]'CERT=$(aws acm list-certificates --query "CertificateSummaryList[?DomainName=='$D'].CertificateArn" --output text)aws acm wait certificate-validated --certificate-arn "$CERT"; aws acm describe-certificate --certificate-arn "$CERT" --query 'Certificate.[Status,SubjectAlternativeNames]'For E4 to E6:
aws eks update-kubeconfig --region "$AWS_REGION" --name "$N"kubectl apply -f ingressclass.yaml -f network-policy.yamlkubectl get nodes; kubectl get ingressclass albkubectl -n kube-system get configmap amazon-vpc-cni -o jsonpath='{.data.enable-network-policy-controller}{"\n"}'kubectl get nodeclass default -o jsonpath='{.spec.securityGroupSelectorTerms}{"\n"}'aws eks describe-cluster --name "$N" --query cluster.resourcesVpcConfig.clusterSecurityGroupId --output text# E5, after the guide's block:kubectl -n "forge-$I" rollout status deployment/forge-api --timeout=15mkubectl -n "forge-$I" get pods,pvc,ingress# E6:LB=$(kubectl -n "forge-$I" get ingress forge -o jsonpath='{.status.loadBalancer.ingress[0].hostname}'); echo "$LB"for h in "$D" "$OPS"; do curl -sS -o /dev/null -w "$h %{http_code}\n" "https://$h/"; doneFor E7 to E11. The file’s own line First password: ... is what is copied:
api() { kubectl -n "forge-$I" exec deploy/forge-api -c api -- dotnet NetBlueprint.Registry.Api.dll "$@"; } # for E8 to E10helm upgrade forge ../../helm/netblueprint-forge -n "forge-$I" --reuse-values --set keysReader.enabled=truekubectl -n "forge-$I" wait --for=condition=Ready pod/forge-keys-reader --timeout=5m# clipboardkubectl -n "forge-$I" exec forge-keys-reader -- cat /keys/first-operator-password.txt | sed -n 's/^First password: //p' | tr -d '\r\n' | $CLIP# Sign in at https://$OPS/ as operator. Then:kubectl -n "forge-$I" exec forge-keys-reader -- rm /keys/first-operator-password.txt# E16 here. Then:helm upgrade forge ../../helm/netblueprint-forge -n "forge-$I" --reuse-values --set keysReader.enabled=false# E8. clipboard: the link is copied, the other lines are shownOUT=$(api set-up --organization "Validation" --administrator "$ADMIN" --address "https://$D"); echo "exit $?"printf '%s\n' "$OUT" | grep -v '/invite#'printf '%s\n' "$OUT" | grep -o 'https://[^[:space:]]*/invite#[^[:space:]]*' | tr -d '\r\n' | $CLIP; unset OUT# E9, then E10:api operator reset operator; echo "exit $?"api check-engine; echo "exit $?"# E11. A10 (use =1 for A13 and A14), then A12:helm upgrade forge ../../helm/netblueprint-forge -n "forge-$I" --reuse-values --set api.replicas=2kubectl -n "forge-$I" rollout status deployment/forge-apikubectl -n "forge-$I" delete pod "$(kubectl -n "forge-$I" get pod -l app.kubernetes.io/component=api -o jsonpath='{.items[0].metadata.name}')"For E12 to E17. F13 is E14 and F14 is E15, with a first line of its own. An encryption context is not a secret:
JS='fetch(process.argv[1],{signal:AbortSignal.timeout(8000)}).then(()=>process.exit(1),()=>process.exit(0))'for u in https://example.com https://1.1.1.1; do kubectl -n "forge-$I" exec deploy/forge-worker -- node -e "$JS" "$u"; echo "$u exit $?"; donekubectl create namespace forge-checkkubectl -n forge-check run control --restart=Never \ --image="$(kubectl -n "forge-$I" get deploy forge-worker -o jsonpath='{.spec.template.spec.containers[0].image}')" \ --command -- node -e 'fetch(process.argv[1]).then(()=>process.exit(0),()=>process.exit(1))' https://example.comkubectl -n forge-check wait --for=jsonpath='{.status.phase}'=Succeeded pod/control --timeout=3m; kubectl delete namespace forge-check# E13:aws eks list-pod-identity-associations --cluster-name "$N" --namespace "forge-$I" --query 'associations[].[serviceAccount,associationArn]' --output textkubectl -n "forge-$I" describe pod -l app.kubernetes.io/component=api | grep -E 'eks-pod-identity-token|AWS_CONTAINER_(CREDENTIALS_FULL_URI|AUTHORIZATION_TOKEN_FILE)'# E14. Raise --max-items in a busy account:KEY=$(tofu output -json kms_keys | jq -r --arg i "$I" '.[$i]')for e in Encrypt Decrypt; do aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=$e \ --start-time "$(date -u -d '3 hours ago' +%Y-%m-%dT%H:%M:%SZ)" --max-items 400 --output json \ | jq -r --arg k "$KEY" '.Events[].CloudTrailEvent | fromjson | select(any(.resources[]?; .ARN == $k)) | [.eventTime, .eventName, .userIdentity.arn, (.requestParameters.encryptionContext | tojson), (.errorCode // "ok")] | @tsv'done# E15:LBARN=$(aws elbv2 describe-load-balancers --query "LoadBalancers[?DNSName=='$LB'].LoadBalancerArn" --output text)aws elbv2 describe-load-balancers --load-balancer-arns "$LBARN" --query 'LoadBalancers[0].[Scheme,AvailabilityZones[].SubnetId]'aws elbv2 describe-load-balancer-attributes --load-balancer-arn "$LBARN" --output text \ --query "Attributes[?Key=='idle_timeout.timeout_seconds' || Key=='routing.http.xff_header_processing.mode' || Key=='routing.http.drop_invalid_header_fields.enabled'].[Key,Value]"aws elbv2 describe-listeners --load-balancer-arn "$LBARN" --query 'Listeners[].[Port,Protocol,SslPolicy,Certificates[0].CertificateArn,DefaultActions[0].Type]' --output textTG=$(aws elbv2 describe-target-groups --load-balancer-arn "$LBARN" --query 'TargetGroups[0].TargetGroupArn' --output text)aws elbv2 describe-target-groups --target-group-arns "$TG" --query 'TargetGroups[0].[TargetType,Port,HealthCheckPath]' --output textaws elbv2 describe-target-group-attributes --target-group-arn "$TG" --output text \ --query "Attributes[?starts_with(Key,'stickiness.') || starts_with(Key,'deregistration_delay.')].[Key,Value]"# E16:kubectl -n "forge-$I" exec forge-keys-reader -- sh -c 'ls -lnd /keys; ls -ln /keys; grep " /keys " /proc/mounts'FS=$(kubectl get pv "forge-keys-forge-$I" -o jsonpath='{.spec.csi.volumeHandle}' | cut -d: -f1)aws efs describe-file-system-policy --file-system-id "$FS" --query Policy --output text | jq -c '.Statement[] | [.Sid, .Effect]'aws efs describe-access-points --file-system-id "$FS" --query 'AccessPoints[0].[PosixUser.Uid,PosixUser.Gid,RootDirectory.Path,RootDirectory.CreationInfo.Permissions]' --output text# E17:kubectl -n "forge-$I" logs deploy/forge-api --tail=3aws eks describe-addon --cluster-name "$N" --addon-name amazon-cloudwatch-observability --query 'addon.[status,addonVersion]' --output textaws logs describe-log-groups --log-group-name-prefix "/aws/containerinsights/$N" --query 'logGroups[].[logGroupName,retentionInDays]' --output textaws logs filter-log-events --log-group-name "/aws/containerinsights/$N/application" --limit 3 --query 'events[].logStreamName' --output textkubectl -n "forge-$I" get pods -o jsonpath='{range .items[*]}{.metadata.name}{" init:"}{.spec.initContainers[*].name}{" env:"}{.spec.containers[*].env[*].name}{"\n"}{end}' | grep -c "OTEL_\|init:[a-z]" # 0 is the passFor E19 and E20; F17 and F18 are the same, without the two lines for the chart. Before the destroy, delete the restored server and the VPC environment of D1, and on the serverless route stop any one-off task. The database refuses deletion by design, a repository with images cannot be removed, nor a vault with backups: three lines before the destroy clear those.
SG=$(aws rds describe-db-instances --db-instance-identifier "$N-$I" --query 'DBInstances[0].VpcSecurityGroups[0].VpcSecurityGroupId' --output text)aws rds restore-db-instance-to-point-in-time --source-db-instance-identifier "$N-$I" --target-db-instance-identifier "$N-$I-restore" \ --use-latest-restorable-time --db-subnet-group-name "$N-$I" --db-parameter-group-name "$N-$I" --vpc-security-group-ids "$SG" \ --no-multi-az --no-publicly-accessible --query DBInstance.DBInstanceStatus --output textaws rds wait db-instance-available --db-instance-identifier "$N-$I-restore"aws rds describe-db-instances --db-instance-identifier "$N-$I-restore" --query 'DBInstances[0].Endpoint.Address' --output text # for D3; then:aws rds delete-db-instance --db-instance-identifier "$N-$I-restore" --skip-final-snapshot --delete-automated-backups --query DBInstance.DBInstanceStatus --output textaws rds wait db-instance-deleted --db-instance-identifier "$N-$I-restore"# E20:KEY=$(tofu output -json kms_keys | jq -r --arg i "$I" '.[$i]')helm uninstall forge -n "forge-$I" # the Ingress goes, and Auto Mode removes its load balanceraws elbv2 describe-load-balancers --query 'LoadBalancers[].DNSName' --output text # again, until the name E6 printed is gonetofu apply -var-file=my.tfvars -var deletion_protection=false # the database's guard, by the modules' own variablefor r in api worker; do aws ecr batch-delete-image --repository-name "$N/$r" --query failures \ --image-ids "$(aws ecr list-images --repository-name "$N/$r" --query 'imageIds[*]' --output json)"; donefor a in $(aws backup list-recovery-points-by-backup-vault --backup-vault-name "$N-$I-keys" --query 'RecoveryPoints[].RecoveryPointArn' --output text); do aws backup delete-recovery-point --backup-vault-name "$N-$I-keys" --recovery-point-arn "$a"; donetofu destroy -var-file=my.tfvars -var deletion_protection=falseaws rds delete-db-snapshot --db-snapshot-identifier "$N-$I-final" --query DBSnapshot.Status --output text # the final snapshot the destroy tookaws kms describe-key --key-id "$KEY" --query 'KeyMetadata.[KeyState,DeletionDate]' --output textaws resourcegroupstaggingapi get-resources --tag-filters Key=Platform,Values="$N" --query 'ResourceTagMappingList[].ResourceARN' --output textThen take the CNAMEs and the validation records out of the zone, and delete terraform.tfstate*. To use the same names again within 30 days, free the secret’s name: aws secretsmanager delete-secret --secret-id "$N/$I/settings" --force-delete-without-recovery.
The Serverless Route (ECS on Fargate)
The same order. What differs: the certificate comes before the second apply; each task starts with a prepare container; nothing can run a command inside the API or the worker, so the API’s commands are one-off tasks whose output goes to CloudWatch Logs.
| # | Step | Pass When | Proves |
|---|---|---|---|
| F1 | As E1, in deploy/aws/serverless |
As E1. The plan also reads the region’s RDS bundle | As E1, and that the bundle’s address for the region answers with certificates. Begins R1 |
| F2 | As E2 | As E2 | As E2 |
| F3 | Set the digests and the instance in my.tfvars. The certificate first; add its two records to the zone |
The targeted apply adds one certificate; the certificate becomes ISSUED with both names (the wait gives up after some minutes: run it again) |
The order the guide gives works. If certificate_validation is empty after a targeted apply, read the records with the last line of F3 and record it |
| F4 | The second apply (allow 40 minutes) | Apply complete; the wait ends (ten minutes at most: run it again while the first start applies the releases) |
The platform and an instance apply; ECS runs both services |
| F5 | The prepare container and the start |
For each service: 1.4.0, prepare STOPPED 0, and api or worker RUNNING; the prepare stream holds no error |
Root with every capability dropped may still open /tmp and write the bundle, and the task starts. A1 then proves the API reads the bundle (the database is ok under VerifyFull); F10 that it writes /tmp. Closes R5 with F10 |
| F6 | Point $D and $OPS at the load balancer with a CNAME each |
Both lines end in 200; the last says 301 and an https:// address |
Both names reach the load balancer; HTTP is redirected. Now start Part 2, as at E6 |
| F7 | A5. The keys reader task through ECS Exec | The agent is RUNNING; as A5; the listing shows files owned by 1654 1654 and no password file; the mount’s source is 127.0.0.1:/ |
ECS Exec’s agent starts with every capability dropped and reaches Session Manager through the NAT gateway; cat and rm work through the access point; the folder is mounted over TLS. Not confirmed in documentation: that the command runs with its output piped, and the mount line as a container sees it. Closes R15 |
| F8 | A6. set-up as a one-off task |
prepare 0 and api 0; the link is on the clipboard |
The API’s commands run as tasks. The link then sits in the log group /forge/acme/api, for anyone who may read it, until the stream is deleted or 90 days pass. It works once, for seven days. After A7, delete the stream with the last line of F8. Never tail that whole group to the screen before then. Closes R2 |
| F9 | The way back in, then F7 again | prepare 0 and api 0; then as E9 |
As E9. The command never prints the password |
| F10 | After A9: check-engine, with prepare asked to list both folders before and after |
Both 0. prepare prints /prepare/tmp and /prepare/db as drwxr-xr-x ... 0 0, then /prepare/tmp as drwxrwxrwt, then db-ca.pem |
Both task volumes start out owned by root with mode 0755, and the API’s user then writes /tmp (its report). Closes R5 with F5 |
| F11 | A10, A12, A13. Set api_count = 2 on the instance and apply; stop one task; api_count = 1 for A13 and A14 |
Each apply ends and the service is stable; a new task takes the stopped one’s place | The service scales, and a task can go |
| F12 | A17. The worker’s subnets and security group, read back | assignPublicIp is DISABLED; the routes are the VPC’s own range to local and one prefix list to a vpce- gateway, with no 0.0.0.0/0; the rules are one in (tcp 5081 from the API’s group) and two out (tcp 443, to the endpoints’ group and to the S3 prefix list) |
The worker’s network is as the guide says. It is the configuration read back, not a test by use. The S3 endpoint’s policy, the block’s last line, allows s3:GetObject on ECR’s layer bucket and nothing else. The interface endpoints keep AWS’s allow-all policy (guide, R16) |
| F13 | As E14 | As E14; the role is the task role, also forge-acme-api |
As E14, through the NAT gateway |
| F14 | As E15, with the first line below | internet-facing, the three public subnets; 3600, append, and true for invalid headers; 443 HTTPS with the policy and the certificate, forward; 80 HTTP, redirect; ip 8080 /api/health; stickiness and deregistration as E15 |
The load balancer is as load-balancer.tf says |
| F15 | Logs in CloudWatch | Two groups, each 90; the worker’s lines appear |
The awslogs driver delivers through the VPC endpoint, from subnets with no route out |
| F16 | The database login: D1 and D2 | As D2 | As D2 |
| F17 | A18. As E19 | As E19 | As E19 |
| F18 | A19. As E20, without the two lines for the chart | As E20 | As E20 |
For F3 to F6:
tofu apply -var-file=my.tfvars -target=module.certificatetofu output certificate_validationCERT=$(aws acm list-certificates --query "CertificateSummaryList[?DomainName=='$D'].CertificateArn" --output text)aws acm wait certificate-validated --certificate-arn "$CERT"; aws acm describe-certificate --certificate-arn "$CERT" --query 'Certificate.[Status,SubjectAlternativeNames]'aws acm describe-certificate --certificate-arn "$CERT" --query 'Certificate.DomainValidationOptions[].ResourceRecord'# F4:tofu plan -var-file=my.tfvars -out=instance.tfplan && tofu apply instance.tfplanaws ecs wait services-stable --cluster "$C" --services api worker# F5:for s in api worker; do T=$(aws ecs list-tasks --cluster "$C" --service-name "$s" --query 'taskArns[0]' --output text) aws ecs describe-tasks --cluster "$C" --tasks "$T" --query 'tasks[0].[platformVersion,containers[].[name,lastStatus,exitCode]]' --output textdoneaws logs tail "/$N/$I/api" --since 1h --log-stream-name-prefix api/prepare# F6:tofu output -json load_balancer_dns_names | jq -r --arg i "$I" '.[$i]'for h in "$D" "$OPS"; do curl -sS -o /dev/null -w "$h %{http_code}\n" "https://$h/"; donecurl -sS -o /dev/null -w '%{http_code} %{redirect_url}\n' "http://$D/"For F7 to F10. x runs one command in the reader; run starts the API’s own task with its command replaced; codes waits for a task and prints each container’s exit code:
NET=$(tofu output -json run_task_network | jq -r --arg i "$I" '.[$i]')TASK=$(aws ecs run-task --cluster "$C" --launch-type FARGATE --enable-execute-command --network-configuration "$NET" \ --task-definition "$(tofu output -json keys_reader_task_definitions | jq -r --arg i "$I" '.[$i]')" --query 'tasks[0].taskArn' --output text); echo "$TASK"aws ecs wait tasks-running --cluster "$C" --tasks "$TASK"aws ecs describe-tasks --cluster "$C" --tasks "$TASK" --query 'tasks[0].containers[0].managedAgents[0].lastStatus' --output text # again, until RUNNINGx() { aws ecs execute-command --cluster "$C" --task "$TASK" --container reader --interactive --command "$1"; }# clipboardx "cat /keys/first-operator-password.txt" | sed -n 's/^First password: //p' | tr -d '\r\n' | $CLIP# Sign in at https://$OPS/ as operator. Then:x "rm /keys/first-operator-password.txt"; x "ls -ln /keys"; x "grep /keys /proc/mounts"aws ecs stop-task --cluster "$C" --task "$TASK" --query task.lastStatus --output text# F8:TD=$(tofu output -json api_task_definitions | jq -r --arg i "$I" '.[$i]')run() { aws ecs run-task --cluster "$C" --launch-type FARGATE --task-definition "$TD" --network-configuration "$NET" --overrides "$1" --query 'tasks[0].taskArn' --output text; }codes() { aws ecs wait tasks-stopped --cluster "$C" --tasks "$1"; aws ecs describe-tasks --cluster "$C" --tasks "$1" --query 'tasks[0].containers[].[name,exitCode]' --output text; }TASK=$(run "$(jq -cn --arg a "$ADMIN" --arg d "https://$D" '{containerOverrides:[{name:"api",command:["set-up","--organization","Validation","--administrator",$a,"--address",$d]}]}')"); echo "$TASK"codes "$TASK"# clipboard: the link, from the task's log streamaws logs get-log-events --log-group-name "/$N/$I/api" --log-stream-name "api/api/${TASK##*/}" --start-from-head --query 'events[].message' --output text \ | grep -o 'https://[^[:space:]]*/invite#[^[:space:]]*' | tr -d '\r\n' | $CLIP# After A7:aws logs delete-log-stream --log-group-name "/$N/$I/api" --log-stream-name "api/api/${TASK##*/}"# F9:TASK=$(run '{"containerOverrides":[{"name":"api","command":["operator","reset","operator"]}]}'); codes "$TASK"# F10:cat > /tmp/check.json <<'EOF'{"containerOverrides":[ {"name":"prepare","command":["ls -lnd /prepare/tmp /prepare/db && chmod 1777 /prepare/tmp && printf '%s' \"$DB_CA\" > /prepare/db/db-ca.pem && ls -lnd /prepare/tmp && ls -ln /prepare/db"]}, {"name":"api","command":["check-engine","--report","/tmp/engine-report.json"]}]}EOFTASK=$(run file:///tmp/check.json); codes "$TASK"aws logs tail "/$N/$I/api" --since 1h --log-stream-names "api/prepare/${TASK##*/}" "api/api/${TASK##*/}"For F11, F12, F14 and F15:
aws ecs stop-task --cluster "$C" --task "$(aws ecs list-tasks --cluster "$C" --service-name api --query 'taskArns[0]' --output text)" --query task.lastStatus --output text# F12:W=$(aws ecs describe-services --cluster "$C" --services worker --query 'services[0].networkConfiguration.awsvpcConfiguration' --output json); echo "$W"aws ec2 describe-route-tables --filters "Name=association.subnet-id,Values=$(jq -r '.subnets | join(",")' <<<"$W")" \ --query 'RouteTables[].Routes[].[DestinationCidrBlock,DestinationPrefixListId,GatewayId,NatGatewayId]' --output textaws ec2 describe-security-group-rules --filters "Name=group-id,Values=$(jq -r '.securityGroups[0]' <<<"$W")" \ --query 'SecurityGroupRules[].[IsEgress,IpProtocol,FromPort,ToPort,CidrIpv4,ReferencedGroupInfo.GroupId,PrefixListId]' --output textaws ec2 describe-vpc-endpoints --filters "Name=vpc-endpoint-type,Values=Gateway" "Name=tag:Name,Values=$N-s3" --query 'VpcEndpoints[0].PolicyDocument' --output text | jq -c '.Statement[] | [.Effect, .Action, .Resource]'# F14, then E15's lines from the second on:LBARN=$(aws elbv2 describe-load-balancers --names "$N-$I" --query 'LoadBalancers[0].LoadBalancerArn' --output text)# F15:aws logs describe-log-groups --log-group-name-prefix "/$N/$I/" --query 'logGroups[].[logGroupName,retentionInDays]' --output textaws logs tail "/$N/$I/worker" --since 1h --log-stream-name-prefix worker/workerThe Sign-In Registrations: S1 to S7
Optional: only if you registered the instance with Microsoft, Google or Apple, or set the operators’ single sign-on or breach check (the guide’s K2). ../VALIDATE.md has the steps; do them after A16 and before the restore and the teardown. This is how each “as your cloud’s steps say” is done on AWS.
| Step | Cluster Route | Serverless Route |
|---|---|---|
| S1 | Plan with both files, below, and read what it would touch: the instance’s secret in Secrets Manager and nothing else that exists in AWS, with helm_values among the changed outputs. Apply, then the guide’s “After a change, on the cluster route”. The two listings below then name the new settings |
The plan touches the secret, the API’s task definition and its service. Apply; the service rolls out by itself. The listing below then names the new settings |
| S2 to S6 | As written | As written. S2 with Apple registered is the first sight of open item R17: apple is listed only if the key reached the API, and S4 with an Apple ID proves it arrived whole |
| S7 | The first log line below prints 0 |
The second prints 0 |
A database, cache, key, file system or network in S1’s plan is a finding. None of these commands prints a secret: the listings are of names.
tofu plan -var-file=my.tfvars -var-file=secrets.tfvars# S1, cluster route: the keys of the cluster's secret, and the settings the pods are given.kubectl -n "forge-$I" get secret forge-settings -o json | jq -r '.data | keys[]'kubectl -n "forge-$I" get deploy forge-api -o json | jq -r '.spec.template.spec.containers[] | select(.name=="api") | .env[].name' | grep -E '^(SignIn|Platform__(BreachCheck|SingleSignOn))'# S1, serverless route: the same two, of the task definition in use.aws ecs describe-task-definition --task-definition "$(tofu output -json api_task_definitions | jq -r --arg i "$I" '.[$i]')" \ | jq -r '.taskDefinition.containerDefinitions[] | select(.name=="api") | (.secrets[].name, .environment[].name)' | grep -E '^(SignIn|Platform__(BreachCheck|SingleSignOn))'# S7: 0 is the pass.kubectl -n "forge-$I" logs -l app.kubernetes.io/component=api -c api --since=10m --tail=-1 | grep -c 'Pwned Passwords'aws logs tail "/$N/$I/api" --since 10m | grep -c 'Pwned Passwords'The Database Login
Whether the login is a superuser, may bypass row-level security or may create roles is a property of RDS, so one route is enough. The way chosen is a CloudShell VPC environment: a shell with a network interface in the platform’s own VPC, in a subnet and with security groups you pick. Given the one group the database already lets in, it reaches the server and no security group is changed. Confirmed in CloudShell’s documentation: a VPC environment takes a subnet and up to five security groups, reaches the internet only from a private subnet behind a NAT gateway (the platform’s private subnets are that), has psql, and keeps nothing when it ends. Not confirmed in documentation: that the AWS CLI inside it has your credentials as an ordinary CloudShell does, and that it reaches Secrets Manager (through the NAT gateway on the cluster route; through the module’s endpoint, which lets the API’s group in, on the serverless route). A psql pod in a namespace of its own would also do on the cluster route, where E12’s control shows such a namespace can reach out; it needs an image from a public registry and was not confirmed.
| # | Step | Pass When | Proves |
|---|---|---|---|
| D1 | In the console open CloudShell, choose +, then Create VPC environment: the VPC named forge, one subnet named forge-private-..., and one security group: the cluster’s on the cluster route (the id E4 printed), forge-acme-api on the serverless route |
A prompt opens that shows a private address | CloudShell stands where the API stands, in the one group the database lets in |
| D2 | In that environment, the block below | The version begins PostgreSQL 18.; the two rows are forge_admin, f, f, t and forge_app, f, f, f |
The API’s login is not a superuser, cannot bypass row-level security and can create roles; release 0004 made forge_app with none of the three. Closes the Verify of need 1 in the guide, and R4 once more: the bundle verifies the server |
| D3 | For A18, once E19 or F17 has printed the restored server’s address: q "select count(*) from organizations", then the same with that address as a second argument |
The same number twice, 1 or more | The restored server has the organization |
The password stays in a shell variable and in psql’s own environment. Nothing below prints it; do not add set -x or an echo. Delete the environment (Actions, Delete) when D3 is done: the destroy cannot remove the subnet while its interface is there.
I=acme; N=forgeCONN=$(aws secretsmanager get-secret-value --secret-id "$N/$I/settings" --query SecretString --output text | jq -r .ConnectionStrings__Registry)f() { printf '%s' "$CONN" | tr ';' '\n' | sed -n "s/^$1=//p"; }curl -fsS -o rds.pem https://truststore.pki.rds.amazonaws.com/global/global-bundle.pemq() { PGPASSWORD=$(f Password) psql "host=${2:-$(f Host)} port=5432 dbname=$(f Database) user=$(f Username) sslmode=verify-full sslrootcert=rds.pem options='-c app.scope=platform'" -X -A -t -c "$1"; }q "select version()"q "select rolname, rolsuper, rolbypassrls, rolcreaterole from pg_roles where rolname in (current_user, 'forge_app') order by 1"Coverage
Every row of the guide’s open items with status Verify, and every # Verify: line of the modules, with the step that proves it.
| Item | What It Asks | Proved By |
|---|---|---|
| R2 | set-up run in a container |
E8, F8 (A6, A7) |
R3; kubernetes/network-policy.yaml |
NetworkPolicy enforced once the ConfigMap asks | E4, E12 |
| R4; step 3 of the guide | The RDS bundle’s address | E5 and D2 (the global bundle), F1 (the region’s). GovCloud’s bundle: by no step. It needs a GovCloud account |
R5; serverless/ecs.tf |
Volumes owned by root at first; the API writes /tmp and reads the bundle |
F5, F10, A1 |
| R6 | Container logs through the CloudWatch Observability add-on | E17 |
| R7, R8 | RDS for PostgreSQL 18 and EKS Auto Mode in GovCloud | By no step. Both need a GovCloud account; for R7 the guide gives the command |
R9; helm/netblueprint-forge/values-aws.yaml |
The annotations Auto Mode honours | E15, with A2, A11 and A16 for their effect |
R13; kubernetes/key-service.tf |
Pod Identity with automountServiceAccountToken: false |
E13, E14 |
R14; kubernetes/cluster.tf (node class) |
The built-in node class’s security group | E4, A1 |
R14; kubernetes/cluster.tf (access entry) |
A role with a path as an access entry | E3, E4, only when you sign in through IAM Identity Center. AWS documents that a role’s ARN may include a path |
R14; modules/keys/main.tf |
The EFS CSI driver mounts without IAM | E5, E16 |
R14; modules/cache/outputs.tf |
The primary endpoint is set for Valkey | E3 or F4 (the apply), A10 (its use) |
R14; kubernetes/cluster.tf (the add-on, two lines) |
The add-on’s version takes the settings that switch its extras off; its Fluent Bit runs on Auto Mode’s nodes | E3 (the apply), E17 |
R14; serverless/main.tf (RDS’s backups) |
RDS’s own backups do not need the isolated subnets’ way to S3 | F17: the restore to a point in time works only if the backups were taken |
R14; serverless/main.tf (the bucket’s name) |
The layer bucket’s name in GovCloud | By no step: it needs a GovCloud account. In a commercial region F5 proves the name, since the worker’s image is pulled through that endpoint |
R15; serverless/keys-reader.tf, three lines |
The exec agent with no capabilities; cat and rm through the access point; Session Manager through the NAT gateway |
F7 |
R17; serverless/ecs.tf |
ECS gives a JSON key’s value with its line breaks (Apple’s key) | S2 and S4 on the serverless route, with Apple registered. Without an Apple registration: by no step |
| Need 1 in the guide (no R number) | rolbypassrls is f on 18.6 |
D2 |
R1 closes when a route has been done from its first step to its last. R10, R11 and R12 are not Verify items and no step closes them.
Results
One row per step; for Result write pass or fail. A5, A6, A17, A18 and A19 have no row of their own: record them under the step that does them here (E7, E8, E12, E19 and E20, or F7, F8, F12, F17 and F18).
| Step | Date | Result | What Was Seen |
|---|---|---|---|
| I1 | |||
| I2 | |||
| I3 | |||
| I4 | |||
| I5 | |||
| I6 | |||
| E1 | |||
| E2 | |||
| E3 | |||
| E4 | |||
| E5 | |||
| E6 | |||
| E7 | |||
| E8 | |||
| E9 | |||
| E10 | |||
| E11 | |||
| E12 | |||
| E13 | |||
| E14 | |||
| E15 | |||
| E16 | |||
| E17 | |||
| E18 | |||
| E19 | |||
| E20 | |||
| F1 | |||
| F2 | |||
| F3 | |||
| F4 | |||
| F5 | |||
| F6 | |||
| F7 | |||
| F8 | |||
| F9 | |||
| F10 | |||
| F11 | |||
| F12 | |||
| F13 | |||
| F14 | |||
| F15 | |||
| F16 | |||
| F17 | |||
| F18 | |||
| D1 | |||
| D2 | |||
| D3 | |||
| A1 | |||
| A2 | |||
| A3 | |||
| A4 | |||
| A7 | |||
| A8 | |||
| A9 | |||
| A10 | |||
| A11 | |||
| A12 | |||
| A13 | |||
| A14 | |||
| A15 | |||
| A16 | |||
| S1 | |||
| S2 | |||
| S3 | |||
| S4 | |||
| S5 | |||
| S6 | |||
| S7 |
Sources
Read on 2026-11-22. “Read” means the page was fetched and read while this was written. “Checked” means a second pass fetched the page and compared this document’s commands with it: the option names and the output keys used. The kubectl, helm, tofu, docker, psql, curl and jq commands were not checked against their own documentation, and the resource counts and waiting times come from reading the modules.
| Source | What It Gives | How It Was Read |
|---|---|---|
docs.aws.amazon.com/cli/latest/reference: ecr, eks, acm, elasticache, efs, logs, rds, ecs, ec2, kms, backup, secretsmanager, resourcegroupstaggingapi |
Every aws command above and its waiters |
Checked. elbv2, cloudtrail lookup-events, ecs run-task, execute-command and describe-tasks: read |
| CloudShell user guide: limits, compute environment and software, getting started, VPC environments and their permissions | Storage, time-outs, the software there, uploads, VPC environments | Read. That Docker is in every region but GovCloud’s: search only |
EKS user guide: auto-net-pol, auto-configure-alb, pod-id-how-it-works, creating-access-entries, create-node-class, auto-runtime-monitoring, delete-cluster; CloudWatch’s page on its Observability add-on |
The ConfigMap; annotations not supported; what Pod Identity adds to a pod; a role’s path; the default node class; no log shipping, and the add-on that does it (its page does not mention Auto Mode); Ingresses before a cluster is deleted |
Read (delete-cluster: checked) |
KMS developer guide: logging-using-cloudtrail, ct-encrypt, ct-decrypt |
Encrypt and Decrypt are management events that carry the encryption context |
Read |
ECS developer guide (ecs-exec, ecs-exec-run, task definition parameters); EFS user guide (encryption-in-transit) and the EFS CSI driver’s own documentation |
ECS Exec’s limits and the plugin; log stream names; a TLS mount shows 127.0.0.1; the driver uses TLS and no IAM by default |
Checked |
| RDS user guide (point-in-time restore, master user privileges); Secrets Manager user guide; aws.amazon.com/kms/pricing | The restore’s options and the master user’s attributes, with nothing found on the restored server’s password; no charge while a secret or a key waits for deletion | Checked |
| opentofu.org (environment variables, the local backend); msys2.org and Git for Windows’ release notes | TF_DATA_DIR; path conversion and MSYS_NO_PATHCONV |
Checked. That the state stays in the folder with TF_DATA_DIR set is an inference |