Aurora Datastore Bootstrap
@webframp/aurora-datastore-bootstrapv2026.07.22.1
01README
One-shot bootstrap for @webframp/postgres-datastore targeting AWS Aurora Serverless v2 (PostgreSQL). Creates an Aurora cluster with a serverless writer instance, a DB subnet group, a VPC security group, and a scoped IAM managed policy for RDS IAM authentication, then switches the current swamp repository to the PostgreSQL datastore.
Prerequisites
- AWS credentials with permissions to create RDS clusters, DB subnet groups, EC2 security groups, and IAM managed policies
- A VPC with at least two subnets in different AZs
What it does
provisioncreates a DB subnet group, security group (port 5432 from VPC CIDR), Aurora Serverless v2 cluster (PostgreSQL 16, IAM auth enabled), writer instance, and a scoped IAM managed policy grantingrds-db:connect.- A final
command/shellstep runsswamp datastore setup extension @webframp/postgres-datastore --config ...to flip the repo's datastore to PostgreSQL.
Running
swamp extension pull @webframp/aurora-datastore-bootstrap
swamp model create @webframp/aurora-datastore-bootstrap/provisioner \
swamp-aurora-provisioner
swamp model create command/shell swamp-aurora-setup
swamp workflow run @webframp/bootstrap-aurora-datastore \
--input region=us-east-1 \
--input master_password=<your-password>
swamp datastore statusSee the bundled README for optional inputs and idempotency notes.
02Models
@webframp/aurora-datastore-bootstrap/provisionerv2026.07.22.1provisioner.ts
fn provision()
Create/verify an Aurora Serverless v2 (PostgreSQL) cluster, networking, and IAM policy for @webframp/postgres-datastore.
Resources
state(infinite)— Aurora Serverless v2 cluster + networking + IAM policy provisioned for swamp.
03Workflows
@webframp/bootstrap-aurora-datastoreb7e4d2a1-8f3c-4b5e-a9d6-2c1e3f4a5b7d
Provision an Aurora Serverless v2 (PostgreSQL) cluster with networking and IAM policy for @webframp/postgres-datastore, then switch the current repo to use PostgreSQL.
infraCreate Aurora Serverless v2 cluster, networking, and IAM policy.
1.provisionswamp-aurora-provisioner.provision— Run the provisioner model. Instance `swamp-aurora-provisioner` must
be pre-created with globalArguments wired to the workflow inputs.
configurePoint this repo's datastore at the new Aurora cluster.
1.run-setupswamp-aurora-setup.execute— Run `swamp datastore setup extension @webframp/postgres-datastore`.
04Stats
A
100 / 100
Downloads
0
Archive size
10.9 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
05Platforms
06Labels