Overview
A protected perimeter around your PostgreSQL
PostgreSQL hosts, applications, the CA and backups sit inside an mTLS perimeter behind three admin-approved doors. No credential leaves; data leaves only through an approved, audited JIT session.
A protected perimeter around your PostgreSQL
Passwordless PostgreSQL access with mTLS
Sealed until a custodian unlocks it
Backups and point-in-time recovery in your S3
One CloudFormation stack in your own VPC
Secure Production Diagnosis
Company sign-in, security key still required

Product video
Bastion Config provides PostgreSQL certificate authentication and certificate management for self-managed PostgreSQL 18 on EC2 in your AWS account. Supported applications connect with client certificates instead of database passwords. Documented integrations include Java, TypeScript/Node and Rust; confirm your runtime, driver and renewal behavior before evaluation. Revocation blocks new application connections after the change reaches PostgreSQL; it does not instantly terminate established sessions. A new client certificate defaults to 30 days and renews automatically; before issuing one, the console warns when no application using that database user has shown it renews, and the key administrator may then choose up to one year. Existing certificates keep their lifetime. New server certificates default to 90 days.
Bastion can import the data of an Amazon RDS for PostgreSQL instance or an Aurora PostgreSQL cluster (PostgreSQL 15 to 18), once, into a new PostgreSQL 18 cluster that Bastion builds on EC2 in your AWS account. It reads from the writer only, over TLS with the server's certificate checked against the CA you enter; a read replica or an Aurora reader endpoint is refused before anything is approved, and the refusal says which endpoint to use. If an Aurora cluster fails over while tables are being copied, the copy follows the cluster endpoint to the new writer and, in our test, every row arrived once; the final comparison with the source has not been tested after a failover. RDS and Aurora are import sources only: Bastion does not manage them or run on them. The same one-time import also takes any other PostgreSQL 15 to 18 primary, in AWS or outside it, that the new cluster's host can reach on its port: through a read-only account made for the import, over TLS with the server's certificate and name checked against the CA you enter; a standby is refused, and Bastion does not attach to or take over the source.
Bastion runs inside your own AWS account, so the seller holds no key and does not sit in your database path. It is priced per installation on your AWS bill, not per administrator or per application.
For database privileged access, Secure Production Diagnosis gives a DBA an approved, time-boxed diagnostic window. A separate domain administrator approves with a security key. The DBA works in the Bastion console without receiving a standing database credential through this workflow. Only policy-permitted SELECT and EXPLAIN statements run under a prepared read-only database role; EXPLAIN ANALYZE is excluded. Activity and Locks panels and CSV export require policy permission. Requests, approvals, statements and exports are audited; returned rows are not copied into the audit trail. Permitted data is visible to the DBA and may be exported when allowed. This is not a data-loss-prevention tool. The Marketplace subscription includes one DBA administrator.
Through an AWS Marketplace private offer, not included in the listed hourly or annual price, a DBA can connect an AI assistant, such as Claude Code or a claude.ai custom connector, to a just-in-time diagnostic session over remote MCP. It works only in a session whose access policy allows it, that was requested or assigned with an assistant and that a domain administrator approved with a security key; the DBA connects it with a security-key touch. The assistant reads only what the session's policy allows, through the same checks as the console, and cannot export; what it reads goes to the DBA's AI provider. It stops when the DBA disconnects it, when the session ends, or when Bastion restarts.
Bastion Config uses hardware-key setup and unlock; setup requires two different supported FIDO2/PRF keys, and passphrase unlock is unavailable. Separate roles and configured approval policies support operational control. An administrator who has registered a security key can sign in with the key and its PIN alone, with no login name or password. Company sign-in with Microsoft Entra ID is optional and off until an administrator turns it on: the administrators of a domain then sign in with their company account and still touch their own security key, so a company sign-in alone opens nothing. A person disabled in Entra is refused by Microsoft at their next sign-in. Bastion does not synchronise your directory. Audit evidence and optional configured S3 Object Lock checkpoints support review; they are not regulatory certification. The reference deployment supports WAL archiving, scheduled base backups and point-in-time recovery using your S3 storage. Availability depends on deployment method; confirm your configuration and exercise recovery in non-production. You own monitoring, retention, access decisions and recovery. No continuity, recovery success, RTO or RPO guarantee is implied. Review current purchase and trial terms on AWS Marketplace; AWS infrastructure charges apply separately, including during the 30-day software trial.
Highlights
- PostgreSQL certificate authentication: supported applications connect without a database password. Evaluate your runtime and driver; revocation blocks new connections after propagation, while established sessions need separate consideration.
- Just-in-time read-only DBA diagnostics: a separate administrator approves a bounded window. SQL, diagnostic panels and CSV exports are restricted by policy. One DBA administrator is included. Through an AWS Marketplace private offer, not included in the listed price, a DBA can connect an AI assistant to an approved session; it reads only what the policy allows, and what it reads goes to the DBA's AI provider.
- Company sign-in with Microsoft Entra ID: administrators sign in with their company account and still touch their security key, so a company sign-in alone opens nothing. A person disabled in Entra is refused by Microsoft at their next sign-in. Self-managed PostgreSQL 18 on EC2 in your AWS account; you own operations and recovery drills; AWS infrastructure charges are separate.
Details
Features and programs
Financing for AWS Marketplace purchases
Pricing
Free trial
Dimension | Cost/hour |
|---|---|
t3.small | $0.40 |
t3.medium | $0.40 |
t3.large | $0.40 |
m6i.large | $0.40 |
Dimensions summary
Top-of-mind questions for buyers
Vendor refund policy
Hourly usage is billed as used and is not refundable; the 30-day free trial lets you evaluate first. Annual subscriptions canceled within 30 days of purchase are refunded in full; after that, refunds are pro rata for unused full months. To request a refund, email bastion-config@fromkos.com with your AWS account ID and agreement ID; approved refunds are processed through AWS Marketplace.
How can we make this page better?
Legal
Vendor terms and conditions
Content disclaimer
Delivery details
Bastion Config - CloudFormation stack in your VPC
Deploys Bastion Config into an existing VPC in your account: the instance runs in a private subnet behind an Application Load Balancer, the only entry from the internet, that accepts HTTPS from the CIDR ranges you choose and from the client security group the stack creates for your PostgreSQL hosts and applications. The stack creates the ACM certificate, the Route 53 records and a private hosted zone for internal names, one least-privilege IAM role for the instance, CloudWatch log groups (the audit group is retained when the stack is deleted), ten CloudWatch alarms and a dashboard, EventBridge rules and an SQS queue through which Bastion sees selected access to attached PostgreSQL hosts outside it while a CloudTrail trail logs, a data volume retained across instance replacement and stack deletion, and, unless you name your own, a versioned S3 bucket for PostgreSQL WAL archives and base backups. Optional and off by default: load balancer access logs, daily data-volume snapshots (with their own Data Lifecycle Manager role), an AWS WAF web ACL, a CloudTrail trail (with its own S3 bucket), a customer-managed KMS key for backups and new PostgreSQL volumes (with a restore role), a break-glass role for attached PostgreSQL hosts (with a deny policy, a Session Manager document and a log group), and two security group rules that let HTTPS reach the load balancer from Anthropic's published ranges, for claude.ai AI assistant connectors. Requires a VPC with two private and two public subnets and a public Route 53 hosted zone.
CloudFormation Template (CFT)
AWS CloudFormation templates are JSON or YAML-formatted text files that simplify provisioning and management on AWS. The templates describe the service or application architecture you want to deploy, and AWS CloudFormation uses those templates to provision and configure the required services (such as Amazon EC2 instances or Amazon RDS DB instances). The deployed application and associated resources are called a "stack."
Version release notes
What changed since v.0.2.530:
Sign-in: a new admin password that is common or easy to guess is refused, with a hint on what to choose instead; repeated failed sign-ins to one account wait longer before the next try.
Console: where JIT diagnostics are licensed, the sign-in page names the AI assistant add-on, available through an AWS Marketplace private offer.
Hardening: further hardening of the service, including account recovery and the AI assistant.
Template: unchanged apart from the default AppImage, which names this release. No resource or IAM permission changed; the optional extras stay off by default.
Upgrading from v.0.2.530 or v.0.2.528: download a Bastion backup and write down the stack's current AppImage. Upgrade the agent on every attached PostgreSQL host first (runbook 9 in /usr/local/share/bastion/docs/RUNBOOKS.md); that may restart PostgreSQL, so plan a maintenance window. Then update the stack with this version's template: the console pre-fills your current values, so set AppImage and ImageId to the values their descriptions name and leave the rest. The instance is replaced and keeps its data volume. When the update completes, run sudo systemctl restart bastion over Session Manager and unlock; the restart signs out every console session. Check the version on the About page, then take a new backup.
Additional details
Usage instructions
BEFORE LAUNCH (same Region): VPC, 2 private (NAT) + 2 public subnets in 2 AZs; public Route 53 hosted zone; AllowedCidr; 2 security keys (YubiKey 5/FIDO2 PRF) to unlock; Session Manager (no SSH). PARAMETERS: keep ImageId and AppImage defaults. Optional extras: off, billable. FIRST SIGN-IN
- Wait for CREATE_COMPLETE (~30 min).
- Via Session Manager, run the FirstRunSecrets output command: setup_token claims the installation (30 min; lapsed: restart bastion); admin_pwd: admin's first password.
- Open ConsoleUrl. Bastion starts sealed: run setup with your keys, sign in as admin, replace admin_pwd.
- Attach PostgreSQL: the console's command builds a PostgreSQL 18 cluster Bastion owns; approve hosts. IAM: InstanceRole (this instance only):
- bastion-ssm-agent: Session Manager, Run Command; no parameter reads.
- bastion-parameters: read/write its agent parameters; read this stack's image pin.
- bastion-attach-own-volume: describe; AttachVolume only on this stack's tagged volume.
- bastion-logs: write /bastion/<stack>/* logs; read the audit group.
- bastion-metrics: PutMetricData to its 3 namespaces only.
- bastion-notifications: sns:Publish (bastion-* topics), ses:SendEmail (alerts).
- bastion-audit-export (AuditExportBucket): PutObject + 2 reads, locked audit copy.
- bastion-host-access: its queue, tag and trail reads (access audit). DataVolumeSnapshotRole (DataVolumeSnapshotDays): Data Lifecycle Manager (AWS managed). PgRestoreRole (BackupKmsKey): creates/restores PostgreSQL volumes under the key. HostBreakGlassRole (BreakGlassPrincipals): MFA, 1 h shell, host-logged, on attach-built PostgreSQL hosts; deny policy: no shell/Run Command there for HostShellDenyGroups/Roles. No other role or user. Alarm EC2 actions: service-linked AWSServiceRoleForCloudWatchEvents. KEYS: volumes use aws/ebs. BackupKmsKey adds a customer-managed KMS key for backups and new PostgreSQL volumes, used via S3 by PostgreSQL hosts, via EC2 by PgRestoreRole and break-glass principals you tag and allow in IAM. Bastion's secrets stay encrypted on the data volume until you unlock; first-run secrets stay on the instance; AWS and the seller hold none. NETWORK: from the internet only the ALB (HTTPS 443, AllowedCidr; Anthropic connector ranges if AiAssistantConnectors=Claude). PostgreSQL hosts and apps in BastionClientSecurityGroup reach the ALB (443) and Bastion's agent ports. INTERNET (HTTPS; apt HTTP): Ubuntu packages, AWS CLI + CloudWatch agent, checkip.amazonaws.com (first boot), STS GetCallerIdentity, Docker Hub bastionsecurity/bastion-app (digest) + /remotepoint, postgresql.org; the attach bundle (seller's S3 bucket, SHA-256 checked) and the Terraform AWS provider (registry.terraform.io), fetched where the attach runs. Optional Entra ID sign-in (login.microsoftonline.com): default off. AI assistant client metadata (its HTTPS URL, e.g. claude.ai). The instance never connects to the seller. UNRECOVERABLE: the data volume and your unlock keys. Stack deletion RETAINS the volume, buckets, audit/session logs, snapshots, KMS key. Back up both. AI ASSISTANT (private offer): what a DBA's assistant reads goes to the DBA's AI provider. IMPORT: Bastion can import the data of one PostgreSQL 15 to 18 primary into a new deployment it builds. Trial: one deployment, once; more need a private offer (DATA_IMPORT.md). MONITORING: alarms (ALARMS.md), dashboard, AlarmTopicArn; EC2 auto-recovery/reboot. JvmMetrics=true: 9 JVM metrics, ~USD 2.70/mo. UPDATES: back up first; PostgreSQL attached: upgrade the agent FIRST (runbook 9, RUNBOOKS.md). Use the AppImage/ImageId the descriptions name, not pre-filled ones; a new ImageId replaces the instance, not the data volume. Only AppImage changed? sudo systemctl restart bastion, then unlock. REMOVAL: delete the stack; unsubscribing terminates no instance. SUPPORT: bastion-config@fromkos.com , Mon-Thu, US Pacific; add your account ID. Guide: fromkos.com/docs/deployment?src=product-docs&campaign=none
Resources
Support
Vendor support
Email: bastion-config@fromkos.com Documentation: https://fromkos.com/docs/overview Support page: https://fromkos.com/docs/support Security issues: email bastion-config@fromkos.com , subject "Security". Policy: https://fromkos.com/docs/security?src=other_external&campaign=none Accessibility: https://fromkos.com/docs/accessibility (statement and VPAT/ACR for console 0.2.454)
Support is by email, in English, Monday to Thursday during US Pacific Time working hours. Include your AWS account ID and the CloudFormation stack name so we can identify your subscription.
Target first response: 5 business days (Monday-Thursday). This is a response target, not an uptime, incident-response, or fix-time guarantee. There is no SLA and no 24/7 coverage.
Covered:
- Launching and configuring the product with the supplied CloudFormation template, on the instance types it offers.
- The sealed setup and unlock ceremony, domain and administrator setup, certificate issuance, and attaching a PostgreSQL database.
- Backup, restore, and point-in-time recovery using the documented procedures.
- Bug reports against the current version, with logs, versions, and steps to reproduce.
- Subscription and entitlement questions.
Not covered:
- Operating your installation, production incident response, or guaranteed fix times.
- Custom topologies, custom integrations or code changes.
- Your AWS account, networking, IAM, or charges billed by AWS.
- Review of unredacted secrets. Never send private keys, unlock shares, or secret values.
Two things nobody can recover for you: the data volume the stack creates (it holds the installation's identity, certificate authority, and control-plane database, and deliberately survives instance replacement) and the unlock shares handed out during setup. By design, we can't reconstruct either. Back both up before production.
Refunds are handled through AWS Marketplace under the refund policy on this listing.
AWS infrastructure support
AWS Support is a one-on-one, fast-response support channel that is staffed 24x7x365 with experienced and technical support engineers. The service helps customers of all sizes and technical abilities to successfully utilize the products and features provided by Amazon Web Services.
Similar products
