-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core: Differing CDK assets not deploy if already deployed. #30962
Comments
@scottschreckengaust Good afternoon. Thanks for opening the issue. Please share the minimal reproduction code along with steps to troubleshoot the issue. Thanks, |
I was going to attempt an SSCCE but the below steps replicate the issue:
git clone https://github.com/aws-samples/generative-ai-cdk-constructs-samples
cd generative-ai-cdk-constructs-samples/tree/main/samples/contract-compliance-analysis/back-end
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cdk deploy --require-approval=never
ls ./cdk.out/asset.bcfc35ab235043b602bca1e99df11b1dcce6d0bf563f013c7c50797bb8644a21/python/orjson/orjson.*.so
cdk destroy --force
DOCKER_DEFAULT_PLATFORM=linxu/amd64 cdk deploy --require-approval=never
ls ./cdk.out/asset.bcfc35ab235043b602bca1e99df11b1dcce6d0bf563f013c7c50797bb8644a21/python/orjson/orjson.*.so
cdk destroy --force
aws s3 rm s3://cdk-hnb659fds-assets-713520743023-us-east-1/bcfc35ab235043b602bca1e99df11b1dcce6d0bf563f013c7c50797bb8644a21.zip
DOCKER_DEFAULT_PLATFORM=linxu/amd64 cdk deploy --require-approval=never
|
Reproducible. Few observations below on 2nd deployment:
|
part of your manual involvement for fixing the issue seem to similar to my raised issue #31051 |
bumping so doesn't go stale |
bump |
Comment so doesn't go stale |
Describe the bug
An updated CDK asset does not deploy if already deployed.
Expected Behavior
orjson.cpython-312-x86_64-linux-gnu.so
should be the updated resource, but is the prior versionorjson.cpython-312-aarch64-linux-gnu.so
is in the Lambda Layer.Current Behavior
The example asset, Lambda Layer, is the original deployment, not the updated version.
Reproduction Steps
TBD
Possible Solution
DOCKER_DEFAULT_PLATFORM=linxu/amd64 cdk deploy
Additional Information/Context
No response
CDK CLI Version
2.150.0
Framework Version
No response
Node.js Version
20.16.0
OS
macOS 14.5
Language
Python
Language Version
Python 3.12.3
Other information
No response
The text was updated successfully, but these errors were encountered: