Skip to main content

Fact Store Aurora Bootstrap

@twonines/fact-store-aurora-bootstrapv2026.07.03.1· 4d agoMODELSWORKFLOWS
01README

One-shot bootstrap for @twonines/fact-store backed by AWS Aurora Postgres Serverless v2. Provisions the RDS cluster + writer instance, the enclosing VPC networking primitives (DB subnet group, security group), an IAM managed policy scoped to rds-db:connect on the cluster, and an IAM workload role that trusts a caller-provided principal (e.g., an AWS SSO permission set ARN). A companion workflow runs the provisioner and then configures @webframp/postgres-datastore against the newly created cluster using a fresh RDS IAM auth token. Prerequisites: - AWS credentials in the default credential chain with permissions to create RDS subnet groups, RDS clusters/instances, EC2 security groups, IAM roles, and IAM managed policies in the target account.

  • An existing VPC and at least two subnets in different AZs. - The caller principal (or the workload role once assumed) will need the rds-db:connect managed policy attached to actually use the cluster after provisioning.
02Models1
@twonines/fact-store-aurora-bootstrap/provisionerv2026.07.03.1mod.ts
fn provision()
Create or verify the Aurora cluster, security group, subnet group,

Resources

state(infinite)— Aurora + IAM resources provisioned for the fact-store backing store
03Workflows1
@twonines/bootstrap-fact-store-aurora9c7d3f5a-1e4b-4a2f-9d3c-6b0e2f8a5b7c

Provision AWS Aurora Postgres Serverless v2 + an IAM workload role for @twonines/fact-store, then switch the current repo's datastore to @webframp/postgres-datastore pointing at the new cluster.

infraCreate/verify the Aurora cluster + IAM workload role.
1.provisionfact-store-aurora-provisioner.provision— Run the provisioner model. Instance `fact-store-aurora-provisioner` must be pre-created with globalArguments wired to the workflow inputs.
configureConfigure @webframp/postgres-datastore against the new cluster.
1.run-setupfact-store-aurora-datastore-setup.execute— Generate a fresh RDS IAM auth token, assemble the connection string, and run `swamp datastore setup extension @webframp/postgres-datastore`.
04Previous Versions7
2026.07.02.7Jul 2, 2026
2026.07.02.6Jul 2, 2026
2026.07.02.5Jul 2, 2026
2026.07.02.4Jul 2, 2026
2026.07.02.3Jul 2, 2026
2026.07.02.2Jul 2, 2026
2026.07.02.1Jul 2, 2026
05Stats
A
100 / 100
Downloads
0
Archive size
543.0 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
06Platforms
07Labels