Skip to content

CFNV2: CreateChangeSet ValidationError #13167

@youngkwangk

Description

@youngkwangk

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Version: 4.8.1

l.s.c.engine.parameters : client error fetching parameter '28'
localstack.request.aws : AWS cloudformation.CreateChangeSet => 400 (ValidationError)
Image

We use cdklocal deploy --require-approval never --watch --all command to deploy CDK stacks to localstack.
After the initial deploy, changing a lambda function code triggers the redeploy and we see the above error in the localstack log.
The command gets stuck at creating CloudFormation changeset...

Image

Unsure how to get a more detailed error than the above error.

When we use the legacy engine by setting PROVIDER_OVERRIDE_CLOUDFORMATION=engine-legacy, it works fine.

Expected Behavior

No response

How are you starting LocalStack?

With a docker-compose file

Steps To Reproduce

How are you starting localstack (e.g., bin/localstack command, arguments, or docker-compose.yml)

docker-compose up
  localstack:
    image: localstack/localstack:stable
    ports:
      - '4566:4566' # LocalStack Gateway
      - '4510-4559:4510-4559' # external services port range
    environment:
      - DEBUG=${DEBUG-}
      - DOCKER_HOST=unix:///var/run/docker.sock
      - DYNAMODB_IN_MEMORY=1
      - PROVIDER_OVERRIDE_CLOUDFORMATION=engine-legacy
    volumes:
      - '${LOCALSTACK_VOLUME_DIR:-./.localstack}:/var/lib/localstack'
      - '/var/run/docker.sock:/var/run/docker.sock'

Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)

cdklocal deploy --require-approval never --watch --all --concurrency 2

Environment

- OS: Mac OS 15.7
- LocalStack: 
  LocalStack version: 4.8.1
  LocalStack Docker image sha: sha256:8c9756bddc44625cd6e890f5e4bcc29b045eebe108b268482b848f4f832ec153
  LocalStack build date: 2025-09-16
  LocalStack build git hash: 150143944

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions