Skip to content

sls deploy failed with "Cannot find ‘serverless-compose.yml|yaml’" #13201

@mericci

Description

@mericci

Issue description

I have been using serverless compose to deploy our lambdas. Until recently, it was working fine, but since December 2, it started failing with the error Cannot find ‘serverless-compose.yml|yaml’ file.

We haven't made any changes. In fact, if I go back to the last commit that deployed successfully, it fails with the same error. The strange thing is that if I go directly to the service directory and run the sls deploy command, the deployment works.

I'm using serverless version 4.4.11, and my folder structure is:

.
├── src/
│ └── services/
│   └── serviceA
│     └── serverless.ts
│   └── serviceB
│     └── serverless.ts
├── serverles-compose.yml
└── README.md

And my serverless compose is:

services:
  serviceA:
    path: src/services/serviceA
  serviceB:
    path: src/services/serviceB
    dependsOn: serviceA

The support said The security token included in the request is expired. But if I update de security token, the error Cannot find ‘serverless-compose.yml|yaml’ is not fixed.

Context

Serverless ϟ Support
This generates a report from your last Serverless Framework command (including any errors) to use for Github Issues, debugging w/ AI, or creating a support ticket w/ Serverless Inc.
Summary Report -----------------

Service Overview

  • Serverless Framework Version: 4.4.11
  • Service Path: /Users/martinricci/arch/backend
  • Service Config File: serverless-compose.yml
  • Command: deploy --stage dev

Error Message

The security token included in the request is expired

Error Stacktrace

at throwDefaultError (file:///Users/martinricci/.serverless/releases/4.4.11/package/dist/sf-core.js:88:8019)
at file:///Users/martinricci/.serverless/releases/4.4.11/package/dist/sf-core.js:88:8293
at de_CommandError (file:///Users/martinricci/.serverless/releases/4.4.11/package/dist/sf-core.js:162:33465)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///Users/martinricci/.serverless/releases/4.4.11/package/dist/sf-core.js:77:25128
at async file:///Users/martinricci/.serverless/releases/4.4.11/package/dist/sf-core.js:78:12236
at async file:///Users/martinricci/.serverless/releases/4.4.11/package/dist/sf-core.js:88:27574
at async file:///Users/martinricci/.serverless/releases/4.4.11/package/dist/sf-core.js:141:7174
at async resolveAccountId (file:///Users/martinricci/.serverless/releases/4.4.11/package/dist/sf-core.js:186:996058)
at async getAwsCredentialProvider (file:///Users/martinricci/.serverless/releases/4.4.11/package/dist/sf-core.js:248:455896)

Service Overview

  • Serverless Framework Version: 4.4.11
  • Command: --version true

Service Overview

  • Serverless Framework Version: 4.29.0
  • Service Config File: serverless-compose.yml
  • Command: support --summary true

Service Path

backend/serverless-compose.yml

Service Overview

  • Serverless Framework Version: 4.27.1
  • Service Config File: serverless-compose.yaml
  • Command: deploy --stage dev

Service Path

backend/serverless-compose.yaml

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions