-
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
Custom::CDKBucketDeployment failed to create #3656
Comments
I've faced almost same problem on typescript aws-cdk. @aws-cdk/aws-s3-deployment@1.3.0 is OK, but 1.4.0 fails to creating Custom Resource. In my cloudwatch logs, following error is written.
According to this, there must be no pyyaml module or something. |
I'm also experiencing this in 1.4.0 and it was previously working when I used 1.3.0. Gonna investigate. After investigating, it seems like the biggest change to the |
Thanks for reporting. Iβll look into this today. |
Confirming this is a bug, we have a repro. |
Due to a change in our build environment (superchain) to Amazon Linux, the structure of the python modules installed in the s3 deployment custom resource lambda handler changed and the "yaml" module ended up under `lib64` instead of `lib`. Also, upgrade awscli to 1.16.218 and boto3 to 1.9.208 Fixes #3656
* fix(s3-deployment): custom resource fails to run aws-cli Due to a change in our build environment (superchain) to Amazon Linux, the structure of the python modules installed in the s3 deployment custom resource lambda handler changed and the "yaml" module ended up under `lib64` instead of `lib`. Also, upgrade awscli to 1.16.218 and boto3 to 1.9.208 Fixes #3656 * do not attempt to move files from lib64 if they dont exist
@eladb any plans for a v1.4.1 with this fix? |
Wouldn't mind this at all |
Ditto π |
I'm using the 1.3.0 version and it appears to be working but it's super slow. Taking 10+ minutes to deploy a handful of files. Was there also a performance issue that was addressed? |
Just wanted to reference this issue about downgrading to 1.3.0: Since my use case is using a pipeline to build static files and publish them to a website directory, I am creating the website s3 bucket before the project I build my files with and then adding an |
This blocks us from creating deployments right now. It should be marked as critical. |
Hi do we have a timeline for 1.4.1? thanks! |
@KnisterPeter 1.5.0 was merged in (c020efa) so I"m sure that release will come out shortly. Edit: And it's live π |
Awesome! |
I'm encountering this same error in python on 1.22.0 in an enterprise environment where all new IAM roles require a boundary policy - so I have to pre-create the role and supply it to BucketDeployment. Is there a minimum set of permissions I need to include in this role to prevent this error? |
@mcalello you can see the policies added to the role and check that you're pre-existing one has these available. If the role is mutable the construct should be adding these already. |
I'm submitting a ...
What is the current behavior?
If the current behavior is a πͺ²bugπͺ²: Please provide the steps to reproduce
I'm using a Custom::CDKBucketDeployment resource to deploy a static website to a S3 bucket:
When running the
cdk deploy
command this fails with:What is the expected behavior (or behavior of feature suggested)?
Expected behavior is that the static website content is deployed onto the S3 bucket.
What is the motivation / use case for changing the behavior or adding this feature?
N/A
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. associated pull-request, stackoverflow, gitter, etc)
The text was updated successfully, but these errors were encountered: