Skip to content
LogoLogo

Your first setup

Start with one app and the services it needs. The current beta path deploys into your AWS account. Beta access and a working deployment are prerequisites for the integration guides; a complete new-customer run-through is still being verified.

Before you start

You need beta admission for your signup email, Node.js 20 or newer, the AWS CLI, and AWS credentials authorized to create the connection's foundation resources in your intended account. Use an email address you can access for the first administrator. The SDK integration remains Preview where marked in its guide.

New to AWS, or need to know exactly which AWS permissions to ask for? Follow Prepare your AWS account first. It covers creating an account, running everything from AWS CloudShell, and the copy-paste SaaSLayerBootstrap policy an administrator can grant instead of full administrator access.

1. Choose modules and topology

Need people to sign in? Start with Users. Need roles and access checks too? Add Permissions. You can evaluate each service separately; you don't need to learn every feature before choosing a starting point.

For the beta, use Bring your own AWS Account (BYOA). Your AWS account holds the services. Hosted choices are still Preview.

2. The Control Plane deploys the Instance

Use the customer-facing saaslayer CLI. Install it, create your SaaSLayer account and sign in:

npm install -g saaslayer
saaslayer signup
saaslayer login

This is your account for managing SaaSLayer, separate from the accounts people will create in your app.

Create an organization and a project for your app:

saaslayer org create "Acme"
saaslayer project create "Acme app" --slug acme-app
saaslayer context

These commands select the new organization and project. If you already have them, run saaslayer org list, saaslayer org use ORG_ID, saaslayer project list and saaslayer project use PROJECT_ID instead. Replace the IDs with values returned by the list commands. Check the selected context before continuing.

Check that your AWS credentials belong to the intended account. The AWS account guide shows how to set up a saaslayer-bootstrap profile. In AWS CloudShell, leave out --profile. Replace YOUR_AWS_ACCOUNT_ID, connect the account, then review the available services:

aws sts get-caller-identity --profile saaslayer-bootstrap
saaslayer aws connect --aws-account YOUR_AWS_ACCOUNT_ID --region us-east-1 --profile saaslayer-bootstrap
saaslayer catalog list

The connection authorizes SaaSLayer to manage deployments through scoped AWS roles. Review the selected organization, project and AWS account, and what the CLI will create. An AWS account can incur charges as resources are provisioned.

Then deploy the supported services selected for your project. For example:

saaslayer deploy --module user-service --module permissions-service --hosting byoa --env dev --region us-east-1 --admin-email admin@example.com
saaslayer status --env dev --region us-east-1

A first deployment of these two services takes about 11 minutes. Replace admin@example.com with your first administrator's reachable address. --hosting byoa explicitly chooses your connected AWS account. Keep --env dev explicit: deploy otherwise defaults to prod. The CLI presents settings and confirmation steps. Use the supported versions and settings offered to your beta account; a sample command doesn't guarantee that every account or module combination is admitted.

3. Owner bootstrap

When you configure the first administrator during deployment, use an address you can access. Follow the account setup and sign-in steps for that deployment.

Your deployment login is separate from the CLI login you used to manage SaaSLayer:

saaslayer login --deployment dev

This distinction matters when you later run commands to manage your app's users.

4. Integrate your product

Keep the Users API URL and public sign-in settings from your deployment. Your app uses those coordinates, not SaaSLayer's own account login.

If a step fails

  • Signup refused: confirm beta admission for your email before retrying.
  • No project selected: select the intended org and project, then check saaslayer context.
  • Wrong AWS account, expired credentials or AccessDenied: see AWS account troubleshooting.
  • No deployment in status: check the project, --env dev and region you selected.
  • Users or Permissions command refused: sign in to the deployment, not just to your SaaSLayer management account, and check that this user has the required authority.

If your beta account isn't ready for a deployment, contact us before trying to fill in missing accounts or credentials yourself.

Work with an agent

Use these instructions with your coding assistant. Read the proposed actions and confirm the target account and environment before creating AWS resources.