cdk-assets: Ziping and uploading empty S3 folder #28086
Labels
@aws-cdk/aws-s3
Related to Amazon S3
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
I recently created my own CodePipeline with a step to synth the CDK folder and upload whatever need to be uploaded using cdk-assets, here is my synth definition:
And this is the step that uses cdk-assets
Althought logs show that assets are being publish, whenever I check S3 zip folder are empty. Any ideas? My folder only contain a single index.py file its defined using the following snippet:
Expected Behavior
Uploaded folder are zipped with the index.py file
Current Behavior
Uploaded folder are zipped with no contents
Reproduction Steps
Create a CodePipeline and use the definitions provided up top.
Possible Solution
No response
Additional Information/Context
It's seems this doesn't happen on my local, any ideas?
CDK CLI Version
2.110.0
Framework Version
No response
Node.js Version
18
OS
Amazon Linux 2023
Language
Python
Language Version
Python 3.11
Other information
No response
The text was updated successfully, but these errors were encountered: