---
name: saaslayer-deployment-help
description: Diagnose SaaSLayer CLI context, AWS connection, foundation status or service deployment failures. Use when setup is blocked or a deployment has failed, is incomplete or appears unhealthy.
---

# Diagnose setup and deployment problems

## Instructions

Read https://saaslayer.com/docs/getting-started/aws-account-setup.md and https://saaslayer.com/docs/getting-started/first-customer-instance.md. Identify whether the problem is management sign-in, local AWS credentials, connection/foundations, a service operation or application integration. Confirm the intended account, region, project, environment and deployment ID; do not infer a missing resource from a generic 404.

Start with supported read-only customer CLI checks. Inspect saaslayer context and saaslayer --help, then use the documented status/operation commands for the deployment. For a foundation issue use saaslayer aws foundation status with the chosen region and local profile, or no profile in CloudShell. Let the user enter MFA, passwords and tokens privately. Redact secret values before sharing diagnostics.

Separate a request being accepted from successful completion and a healthy service. Report the failed component, operation state and evidence still needed. A successful build or unit test is not proof of a deployed service. Use only supported recovery flows; a foundation rollback or reconciliation block needs the guide's support handoff. Do not delete or edit managed stacks, IAM roles, deployment records or SSM parameters directly, and do not switch to operator/admin commands to bypass a failed customer flow.

Obtain authorization for any proposed repair that writes AWS resources, changes settings, resends credentials or redeploys a service. Show the exact target and command first. Preserve existing data and protected environments. If there is no supported recovery, stop at a concrete support handoff with sanitized identifiers and errors.
