• Documentation
  • Pricing
© 2026 Serverless, Inc. All rights reserved.

Framework

  • Overview
  • Documentation
  • Plugins360
  • Pricing

Learn

  • Blog
  • GuidesUpdated
  • Examples240
  • Courses

Resources

  • Support
  • Security
  • Trust Center
  • Status

Community

  • Slack
  • GitHub47k
  • Forum
  • Meetups

Company

  • About
  • Careers
  • Contact
  • Partners

Legal

  • Terms of Service
  • Privacy Policy
  • Trademark
  • DMCA
Serverless Framework Logo

Serverless Framework

Intro
SetupUpgrading To V4ConceptsTutorialAWS CredentialsLicense KeysVerifying Downloads
DeployingPackagingBuildingTestingDev ModeServicesFunctions
OverviewHTTP (API Gateway v2)REST (API Gateway v1)ActiveMQApplication Load BalancerAlexa SkillAlexa Smart HomeCloudWatch EventCloudWatch LogCloudFrontCognito User PoolEventBridge EventIoTIoT Fleet ProvisioningKafkaKinesis & DynamoDBMSKRabbitMQS3ScheduleSNSSQSWebsocket
Layers
OverviewTroubleshooting
Managed InstancesWeb Apps (Lambda Web Functions)Sandboxes (Lambda MicroVMs)MCP ServersAlertsVersion PruningDomainsIAM Function PermissionsParameters
OverviewSelf-reference serverless.ymlServerless CoreEnvironment VariablesCLI OptionsExternal YAML/JSON FilesJavascript propertiesGitDoppler
OverviewS3 ObjectsSSM Parameter Store & Secrets ManagerCloudFormation Stack Outputs
OverviewVaultTerraform State Output
ResourcesComposing ServicesDeployment BucketStateAgent SkillsPython support
OverviewRuntimeGatewayMemoryBrowserCode InterpreterDev Mode
API Gateway Proxy
OverviewGeneral ConfigurationAuthenticationAPI KeysData SourcesResolversPipeline FunctionsSubstitutionsCachingDelta SyncCustom DomainWAFCLI Commands
Deploying SAM/CFN TemplatesWorkflow Tips
OverviewCreating PluginsCLI OutputCustom CommandsCustom VariablesExtending the Configuration schemaExtending and overriding configuration
OverviewDashboardAxiom
Overviewagent docsagent inspectagent setupagent skills installagent skills list / readdeploydeploy functiondeploy listdevdiffinfoinvokeinvoke localloginlogin awslogin aws ssologsmetricspackageplugin installplugin uninstallprintprunereconcileremoverollbackrollback functionusage
OverviewConcepts
OverviewMetricsTracesTroubleshoot
OverviewNode.jsPython
OutputsProviders
OverviewBranch DeploymentsPreview DeploymentsCustom ScriptsTestingPrivate PackagesNotificationsMono ReposDeploy in your own CI/CDBest PracticesTroubleshootingFAQ
OverviewSetupToolsAWS Integration
Serverless.yml Reference
Examples and TutorialsConfiguration Validation
  1. CLI Reference
  2. Reconcile

serverless reconcile

serverless reconcile compares your org's open billable instances with the AWS CloudFormation stacks in the AWS account of the credentials it runs with, and reports every instance whose stack was deleted as removed, so it stops counting toward your usage. serverless remove reports a removal itself; use serverless reconcile after stacks were deleted another way, such as in the AWS console or by a custom workflow. The command works on the whole AWS account, not one service: run it from any directory, once per AWS account.

serverless reconcile

The command prints how many instances it reconciled:

✔ Successfully reconciled 3 instances for my-org org in AWS Account 123456789012.

To view your org's billable instances for the current month, run the "serverless usage" command.

If you have any questions about your usage, please contact support@serverless.com.

When every instance still has its stack, it prints No instances to reconcile for my-org org in AWS Account 123456789012.

Options

serverless reconcile accepts these options:

OptionAliasValueDefaultRequiredDescription
--orgstringThe service's org, else SERVERLESS_ORG_NAME, else your default orgNoOrg whose instances to reconcile.
--aws-profilestringThe AWS SDK's default credentialsNoAWS profile whose account to reconcile.
--help-hbooleanfalseNoShow the command's help.

How serverless reconcile decides

serverless reconcile runs these steps:

  1. Looks up the AWS account ID of the credentials.
  2. Reads the org's open billable instances whose CloudFormation stack is in that account.
  3. Lists the CloudFormation stacks in each AWS Region those instances' stacks are in, three Regions at a time.
  4. Reports each instance whose stack no longer exists, or is DELETE_COMPLETE, as removed, in batches of 100.

An instance in a Region whose stacks can't be listed is skipped, and the command prints a warning naming the Region. If a batch fails after earlier batches succeeded, the command prints how many instances it reconciled and asks you to run it again; instances already reconciled aren't processed twice.

To view the instances that remain, run serverless usage.

Reconcile several AWS accounts

serverless reconcile reconciles only the AWS account of its credentials. For stacks in several accounts, run it once per account, with that account's credentials:

serverless reconcile --aws-profile production

Inside a service directory whose provider credentials are set in the Serverless Framework Dashboard, the command uses those credentials.

AWS Region for the account lookup

serverless reconcile looks up the AWS account ID in us-east-1 by default. Where that Region is blocked, or VPC endpoints exist only in certain Regions, set the AWS_REGION environment variable:

AWS_REGION=eu-central-1 serverless reconcile

Side effects and CI use

  • serverless reconcile changes no AWS resources: it calls sts:GetCallerIdentity and cloudformation:ListStacks. It updates the org's instance records in the Serverless Framework Dashboard, and is safe to re-run.
  • The command needs a signed-in user. It does not prompt otherwise, so in CI set the SERVERLESS_ACCESS_KEY or SERVERLESS_LICENSE_KEY environment variable.
  • In an account with many stacks the command can take a few minutes.

Examples

Reconcile the instances of a specific org

serverless reconcile --org my-org

Related commands

  • serverless usage lists your org's billable instances.
  • serverless remove removes a service and reports the removal.
Edit this page
Prev pruneNextremove

Contents

  • serverless reconcile
  • Options
  • How serverless reconcile decides
  • Reconcile several AWS accounts
  • AWS Region for the account lookup
  • Side effects and CI use
  • Examples
  • Reconcile the instances of a specific org
  • Related commands

Related

GuidesPluginsExamplesSlack CommunitySupport