---
title: Your first setup
description: The path from a SaaSLayer account to services your app can call.
canonical_url: 'https://saaslayer.com/docs/getting-started/first-customer-instance/'
last_updated: '2026-11-22T17:01:19-08:00'
---
# 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](https://saaslayer.com/docs/getting-started/aws-account-setup) 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)](https://saaslayer.com/docs/getting-started/deployment-modes).
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:

```bash
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:

```bash
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](https://saaslayer.com/docs/getting-started/aws-account-setup) 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:

```bash
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:

```bash
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:

```bash
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.

* [Connect Users to your app](https://saaslayer.com/docs/users/quickstart).
* [Learn what a permission check does](https://saaslayer.com/docs/permissions/overview).
* [Explore UI components](https://saaslayer.com/docs/embedded-ui/overview), currently Preview.

## 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](https://saaslayer.com/docs/getting-started/aws-account-setup#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](https://saaslayer.com/contact/) 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.

```prompt

## Instructions

Help me deploy my first SaaSLayer services. Read https://saaslayer.com/docs/getting-started/first-customer-instance.md and https://saaslayer.com/docs/getting-started/aws-account-setup.md first. If either is unavailable, ask me to copy the page for AI. Confirm beta admission and inspect saaslayer context and saaslayer catalog list. Reuse the existing organization, project and connected AWS account; do not create duplicates. If AWS is not connected, complete the guide's separately approved connection flow first.

Ask what my app needs, which region to use, my app's URL and the reachable first-admin email. Propose Users and Permissions if I need both sign-in and access rules. Inspect the available module settings. Prepare the exact saaslayer deploy command with --hosting byoa, --env dev and the explicit region. When Users is included, supply --admin-email and review the AppUrl default offered by the module. If my application uses another URL, set --set user-service.AppUrl=<my app URL>. AppUrl accepts a scheme, host, optional port and optional base path; it does not host my frontend. Do not add Users settings to a Permissions-only deployment. Never omit --env because deploy defaults to prod.

Before deployment, show the target organization, project, AWS account, region, modules, settings, email and expected costs. Wait for my explicit approval of that exact deployment. Use the customer saaslayer CLI; do not use operator commands, direct CloudFormation changes or database edits. Watch the resulting operation and check status; a started request is not proof of a healthy deployment. Report failed or unfinished components honestly and use supported recovery instructions.

For the first-admin login, let me enter my temporary password, new password and MFA privately. Keep the management login separate from the deployment login. Follow the guide to activate the access admin, configure my browser origin and identify the public API endpoints. Do not publish a frontend, send invitations, enable paid add-ons or deploy to staging/prod unless I separately request and approve those actions. Finish with the deployment ID, endpoints, completed checks and any remaining setup, without secrets.

```
