Skip to content

core: Asset bundling ignored when deploy with --exclusive flag with nested stack #30967

Open
@jk2l

Description

@jk2l

Describe the bug

When I run exclusive flag during deploy, the lambda within nested stack failed to do bundling

Expected Behavior

Assets bundling should executed and bundled

Current Behavior

Asset bundling ignored

Reproduction Steps

Demo example created under https://github.com/jk2l/CDK-Debug.git

if you run cdk deploy -e DEBUG-pipeline-DEV/DEV/debug the lambda lib won't be added into part of the packaging
if you run without -e you should have the lambda dependency from requirements.txt added into lambda folder structure

pre-req for running the demo: you need to put your own account id under cdk.json line 19 (replace the 000000000000)

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

v2.150.0

Framework Version

No response

Node.js Version

v18.15.0

OS

Ubuntu 22.04.1 LTS from Windows WSL

Language

Python

Language Version

Python 3.9

Other information

This may related to the following bug reports:

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-lambdaRelated to AWS Lambda@aws-cdk/coreRelated to core CDK functionalitybugThis issue is a bug.effort/mediumMedium work item – several days of effortp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions