-
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
DeployCodeBaseCustomResource18AF4C97 failed #15677
Comments
This bucket is showing up in the error: |
I don't think I ever touch that bucket, but it's on our team account, maybe someone else from my team did something. And I just checked that bucket seems like some testing file has been uploaded into it that makes sense. How should I fix it? |
Oh, the testing files are uploaded from our S3 test. So, it's there when our CDK script was still working a week before, but I can try to re-bootstrap it and see if it's the root cause of the failure. Any suggestion about how to re-bootstrap the region? Just delete the bucket? I cannot find it from the documentation. |
I suspect a re-bootstrap would solve this issue. I just cloned the repo and successfully deployed 😄 I'll post guidance on re-bootstrapping in a bit |
@TingDaoK do you have newStyleStackSynthesis enabled? What happens when you try to bootstrap? |
Nope. But I also tried to add
|
@TingDaoK it doesn't look like there's anything wrong with destroying the bootstrap stack. Unless you know of a specific reason not to destroy for your purposes, I'm not going to advise against destroying and recreating the bootstrap stack. |
I deleted the bootstrap stack and recreated one. However |
|
I also tried the CLI command reported failed separately, and it works fine.
|
Marking this as a bug for investigation. |
Hi, @TingDaoK I can't reproduce the issue, either, but can you try to increase the memory limit of the new s3deploy.BucketDeployment(this, 'DeployCodeBase', {
sources: [s3deploy.Source.asset('../benchmarks-stack')],
destinationBucket: code_bucket,
memoryLimit: 256 // default is 128
}); |
Hi, I just tested with the change, but still got the exactly same error.😥 So, you cannot reproduce the issue means you pulled the code base and successfully deployed the stack? Which platform/OS you used? Or is it related to the AWS account setting? |
I'm using MacOS, and I pulled the code base and successfully deployed on my own AWS account just fine |
Yes, I suspect it's related to the AWS account setting. More specifically with the lambda function, which probably doesn't have enough memory or is timing out or something like that. |
Suddenly I am experiencing the same thing. Assets are no longer transferred into the bucket from my windows machine and we have not changed anything. As a doublecheck we have also checkout the working code that was originally deployed 4 weeks ago and now it is no longer transferring the files |
The error reported is not informative. I don't know what settings to be changed. And as I saw, the lambda function is created by CDK as well. What kind of settings should I change? |
I checked the lambda function for |
Hmmm, I just run it again, now it deployed successfully. |
@TingDaoK you might want to take a look at the following issue. At least in our case is very close issue, so basically Our problem is exactly the same as this |
@TingDaoK can you confirm whether the problem is related to cached assets? |
|
By the transfer the creation of the assets in a lambda function... much more reliable |
I was using KMS to upload the folder since I was uploading in encrypted bucket and was getting same error, while memory limit could have been one of the issues, it turned out despite of running the scripts as admin, the
|
❓ General Issue
Same code works fine couple weeks before, but without any code change in the few weeks, it starts to fail every time when I tried to do cdk deploy. The error reported is from DeployCodeBaseCustomResource18AF4C97. Seems like the underlying aws-cli command failed for some reason.
We used CDK for nodejs at version 1.103.0. The only related code I can think of is from @aws-cdk/aws-s3
The whole CDK code can be found from https://github.com/awslabs/aws-c-s3/tree/main/benchmarks/dashboard-stack
Not sure it's bug from CDK or something in our code base.
The Question
Environment
Other information
The text was updated successfully, but these errors were encountered: