Skip to main content
Goal: one de-identify → re-identify round trip inside your own AWS account, signed with your own IAM role, with the audit record to prove it happened. This path uses the CloudFormation template because it creates every dependency in one stack. Plan on about an hour, most of it Aurora and stack creation. You need:
  • An AWS account and Region where you can create IAM roles, a KMS key, Aurora, ECS, VPC Lattice and VPC endpoints.
  • A VPC with DNS hostnames enabled, private subnets in at least two AZs that VPC Lattice supports, and no route to a NAT or internet gateway. Prerequisites.
  • On-Demand vCPU quota (Standard instances) for at least 12 vCPUs: each detect task fills a c9g.xlarge, two of them take 8, and rehydration needs one more instance.
  • A test host inside that VPC — the services have no public endpoint. An EC2 instance you reach through Session Manager works; set EnableSsmEndpoints=true below. It needs Python 3.11+, boto3, jq, the AWS CLI and the tenet-pii-lattice client (pip install https://platform.tenetlabs.com/enterprise/current/tenet_pii_lattice.tar.gz). The VPC has no internet path, so install them before the host loses it, bake them into the AMI, or copy the files in.
  • An IAM role for that host (the test client role). The stack names it as a detect, rehydrate and erasure invoker and as the audit reader; you attach the stack’s caller policies to it after deploy.
  • On your workstation: aws CLI v2, jq and cosign v3.

Run this quickstart with a coding agent — it asks for your values, deploys, verifies, and stops before anything irreversible.

Open in Cursor
1

Subscribe

Subscribe on the Tenet PII Engine listing in AWS Marketplace (choose View purchase options), or accept your private offer, from the account you deploy into. There’s nothing to configure for billing: the detect service checks the subscription at startup through the metering-marketplace VPC endpoint the stack creates, and refuses to start without it. Billing.
2

Download and verify the release

Download the signing key, the signed release record and the template, verify the record, and take the image digest from it:
That Marketplace image is your ImageUri in every Region — don’t copy it. Outside us-east-1 the stack reaches it through cross-Region endpoints it creates, which needs vpce:AllowMultiRegion on the role that runs the stack (The image in every Region). Comparing the record with the digest Marketplace serves, and why the Marketplace copy carries no signature: Verify the release.
3

Deploy the stack

Use the tenet-pii-enterprise.yaml you downloaded. It’s over CloudFormation’s inline size limit, so --s3-bucket must name a bucket you own in the Region (TEMPLATE_BUCKET).
Run it as KeyAdminRoleArn. CAPABILITY_AUTO_EXPAND is required — the template uses the AWS::LanguageExtensions transform. DeploymentId is bound into every KMS call and can never change on this vault. Every parameter: ECS with CloudFormation.
4

Authorize the test host and check readiness

A caller needs its role in the services’ auth policies (done by the invoker parameters above) and vpc-lattice-svcs:Invoke in its own IAM policy, plus a network path to VPC Lattice. From your workstation:
The health probes aren’t routed through VPC Lattice, so check readiness where it’s reported — ECS and the Lattice target groups, which health-check /readyz:
5

De-identify, then re-identify

On the test host, running as the test client role. The client signs each request with SigV4 for vpc-lattice-svcs:
Exact placeholders depend on what the model detects. The restored text must equal the original. A 403 means the role, its identity policy or the network path is missing — see the gotchas.
6

Read the audit record

Every re-identify call writes one object to the Object Lock bucket before the response is returned:
The record names your role session and holds counts and a keyed digest of the session — never the session_id, never a value. upstream_request_id joins it to the Lattice access log in /<NamePrefix>/lattice.

Gotchas

  • No host in the VPC, no test. The Lattice services resolve and route only inside VPCs associated with the service network. Calls from your laptop fail by design.
  • 403 on the first call means one of three things is missing: the role in the invoker list, the caller policy on the role (a same-account caller needs both), or LatticeClientSecurityGroupId on the host. The response doesn’t say which; the service’s WARNING log line does when the request got that far.
  • Trial settings are not production settings. AuditObjectLockMode=COMPLIANCE, AuroraDeletionProtection=true and VaultDeletionPolicy=Snapshot for anything real.
  • A detect replica fills a c9g.xlarge. Rollouts replace tasks in place at 50% minimum healthy, so capacity halves during a deploy. Upgrades.

Next