Skip to content

Deployment error occurs from v4.4.4 without any changes #12850

@nikon-h-mizukami

Description

@nikon-h-mizukami

Issue description

In a situation where serverless.yml and source code have not been changed, the following error occurs from v4.4.4 and deployment is not possible.
Up to v4.4.3, I was able to deploy without any problems.
I am using v6.0.0 of dotEnv, but there seems to be a problem with compatibility with v4.4.4.
Please confirm.

[Container] 2024/10/04 07:50:47.055066 Running command sls deploy --region $AWS_REGION --stage $AWS_STAGE

  • Initializing

✖ Error: Cannot resolve '${cf:application.DefaultSecurityGroup}' variable at 'functions.2.ApplicationRegister.vpc.securityGroupIds.1'. No value is available for this variable, and no default value was provided. Please check your variable definitions or provide a default value.
at _ResolverManager.resolve (file:///root/.serverless/releases/4.4.4/package/dist/sf-core.js:655:55913)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async #handlePlaceholderNode (file:///root/.serverless/releases/4.4.4/package/dist/sf-core.js:655:54343)
at async file:///root/.serverless/releases/4.4.4/package/dist/sf-core.js:655:52335
at async processNodeAndHandleCompletion (file:///root/.serverless/releases/4.4.4/package/dist/sf-core.js:655:43086)

For help, try the following:
• Run the command again with the "--debug" option
• Run "serverless support"
• Review the docs: https://www.serverless.com/framework/docs/

Context

N/A

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions