• 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. Dashboard
  2. CI CD
  3. Overview

Serverless CI/CD

Serverless CI/CD is the Serverless Framework Dashboard's managed build service: it tests and deploys a service from a GitHub or Bitbucket repository on every push to a mapped branch and, with preview deployments on, for pull requests. It needs no pipeline file in the repository and no build servers. To run the Framework in GitHub Actions, GitLab CI/CD or another CI/CD service instead, see Deploy from your own CI/CD pipeline.

Requirements for Serverless CI/CD

A service can use Serverless CI/CD when:

  • The service is in a GitHub or Bitbucket repository, with its serverless.yml at the repository root or in a subdirectory (the base directory).
  • The service name in serverless.yml matches the service you configure in the Dashboard.
  • serverless.yml sets org, app and service. The Framework uses a Dashboard Provider's credentials only when all three are set.
  • A Dashboard Provider supplies the AWS credentials. The build has no AWS credentials of its own. It uses the Provider linked to the service instance (the stage and Region), else the Provider linked to the service, else the org's default Provider.
  • The service uses the Node.js or Python runtime. The build installs dependencies with npm and runs the test command before it deploys.

Set up Serverless CI/CD

  1. Create a Provider for your AWS account and link it to the service, or set it as the org default (Providers). A Provider with an AWS Access Role gives each deployment short-lived credentials.
  2. Sign in to the Dashboard, open the app that contains the service, and choose settings from the service's ... menu.
  3. In connect to git, choose connect to Github or connect to BitBucket, and follow the prompts to authorize and install the Serverless app for your account.
  4. In repository settings, select the repository, and the base directory when the service is in a subdirectory.
  5. In branch deploys, map a branch to a stage (Branch deployments). Optional: in preview deploys, turn on deployments for pull requests (Preview deployments).

The Dashboard saves each setting as you change it. To check the setup, push a commit to a mapped branch and open deployments in the Dashboard: the new build appears there with its test results, logs and deployment details.

What a Serverless CI/CD build runs

Each build clones the repository, checks out the commit, installs dependencies with npm, runs the configured test command (Run tests in Serverless CI/CD) and runs serverless deploy for the mapped stage. When the test step fails, the build stops before the deploy step and the deployed service stays unchanged.

Settings that change a build:

  • Region: with the default setting, the build passes no Region, and the service deploys to the Region its serverless.yml resolves.
  • Test command: the command the test step runs.
  • Trigger Directories: limit builds to commits that change specific directories (Mono-repo support).
  • Parameters: Dashboard parameters of the service and stage are available to the build as environment variables (Private packages).

To run your own commands at each step, see Custom scripts.

Serverless CI/CD guides

  • Branch deployments: deploy a stage on every push to a branch.
  • Preview deployments: deploy each pull request to its own stage and remove it when the branch goes away.
  • Run tests in Serverless CI/CD: the test step, its command and Python dependencies.
  • Custom scripts: run commands before or after install, test and deploy.
  • Private packages: install packages from a private npm registry.
  • Notifications: get notified when a deployment starts, succeeds or fails.
  • Mono-repo support: deploy several services from one repository with Trigger Directories.
  • Deploy from your own CI/CD pipeline: run the Framework in GitHub Actions or another CI/CD service.
  • Troubleshooting: reset the GitHub connection.
Edit this page
Prev ProvidersNextBranch Deployments

Contents

  • Serverless CI/CD
  • Requirements for Serverless CI/CD
  • Set up Serverless CI/CD
  • What a Serverless CI/CD build runs
  • Serverless CI/CD guides

Related

GuidesPluginsExamplesSlack CommunitySupport