pipelines: UpdatePipeline stage fails on invalid S3 policy
Describe the bug
Upgraded from v2.100.0 to v2.101.0
Upon deployment received the following message (in CodeBuild) for the UpdatePipeline stage. Currently using pipelines to facilitate creation of CodePipeline.
Resource handler returned message: "Policy has invalid action (Service: S3, Status Code: 400, Request ID: XSE075TJK1K319VC, Extended Request ID: ORsos9yz7sdctnOg4AT8QiCjo9irN0v0nBFD/vW/ZxEMW1Y2PclX9Ve0o6lCstdGxQpaHdJjZi8=)" (RequestToken: 3d521b5c-2f09-4c59-09a6-cb30ccdf294e, HandlerErrorCode: GeneralServiceException)
Expected Behavior
No difference to our CodePipeline behavior after upgrading.
Current Behavior
Deploys all the way through without issue on v2.100.0. Fails with above error on v2.101.0.
Reproduction Steps
Implement CodePipelines using cdk pipelines cdk sub-module. Deploy using v2.100.0. Upgrade to v2.101.0. Probably need some lambda assets if this is related to staging S3 assets.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.101.0
Framework Version
No response
Node.js Version
v18.18.1
OS
LInux
Language
TypeScript
Language Version
5.2.2
Other information
No response
i'm seeing the same error and i'm not using pipelines.
i guess this could be the reason: https://github.com/aws/aws-cdk/pull/27416#issuecomment-1759505651
I had same issue after upgrading to v2.101.0. Need to downgrade to v2.100.0 to get it worked.
My self modifying Pipeline failed after upgrading to this version. Please revert/fix the patch ASAP or warn your users about this version.
+1, running into the same issue initializing a new pipeline
- 1 same here
Any ETA on when this is going to be fixed?
+1 having the exact same issue
+1 having the exact same issue
more generic bug is #27547
+1 Our SelfMutate step is also failing today; even on reverting to v2.100.0 and lower.
can confirm was facing same issue in SelfMutate step but latest aws-cdk 2.101.1 appears to have fixed the issue for me, now able to release successfully.
Agree with @avsteel, the latest 2.101.1 resolved the issue for me.
I'm the same as avsteel and manu-remsense - 2.101.1 fixed this for us!
could related to https://github.com/aws/aws-cdk/pull/27416#issuecomment-1759505651 I am closing this issue for now and feel free to reopen it if any concerns.
⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.