IPAM Deploy
Stack: ipam/ — runs in the network account (ap-southeast-6).
What this stack does
Section titled “What this stack does”- Creates the IPAM instance (home region
ap-southeast-6) - Builds the five-pool hierarchy under the Private scope
- RAM-shares leaf pools to workload accounts via
ram_share_principals
The root org pool has no locale. Regional and leaf pools carry locale for NZ and AU. Select Private in the IPAM scope dropdown when verifying.
Execution context
Section titled “Execution context”| Field | Value |
|---|---|
| Account | Network |
| Profile | ipam-network |
| Region | ap-southeast-6 |
export AWS_PROFILE=ipam-networkexport AWS_REGION=ap-southeast-6aws sts get-caller-identityterraform -chdir=examples/multi-account/ipam initterraform -chdir=examples/multi-account/ipam applyCreate examples/multi-account/ipam/terraform.tfvars locally (gitignored):
workload_account_a_id = "111111111111"workload_account_b_id = "222222222222"Key outputs
Section titled “Key outputs”terraform -chdir=examples/multi-account/ipam output operating_regionsterraform -chdir=examples/multi-account/ipam output nz_dev_pool_idterraform -chdir=examples/multi-account/ipam output au_sandbox_pool_idterraform -chdir=examples/multi-account/ipam output ram_share_pool_keys| Output | Purpose |
|---|---|
operating_regions | ap-southeast-6, ap-southeast-2 (from pool locales + home) |
nz_dev_pool_id | Copy to workload-a/terraform.tfvars as pool_id |
au_sandbox_pool_id | Copy to workload-b/terraform.tfvars as pool_id |
Stack contract
Section titled “Stack contract”Copy pool IDs manually into workload terraform.tfvars — no terraform_remote_state:
| IPAM output | Workload input | File |
|---|---|---|
nz_dev_pool_id | pool_id | workload-a/terraform.tfvars |
au_sandbox_pool_id | pool_id | workload-b/terraform.tfvars |
Example placeholder:
pool_id = "ipam-pool-0123456789abcdef0"Expected result
Section titled “Expected result”- IPAM exists in home region
ap-southeast-6 - Five pools under Private scope (see Pool hierarchy)
- RAM shares
org-nz-devandorg-au-sandboxActive
Next: Workload deploy.
Upstream: examples/multi-account/