aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

pipelines: UpdatePipeline stage fails on invalid S3 policy

Open codernaive opened this issue 3 years ago • 15 comments

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

codernaive avatar Oct 14 '23 07:10 codernaive

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

days-later avatar Oct 14 '23 10:10 days-later

I had same issue after upgrading to v2.101.0. Need to downgrade to v2.100.0 to get it worked.

silo-su avatar Oct 14 '23 23:10 silo-su

My self modifying Pipeline failed after upgrading to this version. Please revert/fix the patch ASAP or warn your users about this version.

Khoulaiz avatar Oct 15 '23 05:10 Khoulaiz

+1, running into the same issue initializing a new pipeline

NanHeSam avatar Oct 15 '23 06:10 NanHeSam

  • 1 same here

panamclipper707 avatar Oct 16 '23 00:10 panamclipper707

Any ETA on when this is going to be fixed?

denys-tyshetskyy avatar Oct 16 '23 01:10 denys-tyshetskyy

+1 having the exact same issue

manu-remsense avatar Oct 16 '23 06:10 manu-remsense

+1 having the exact same issue

roamingthings avatar Oct 16 '23 07:10 roamingthings

more generic bug is #27547

Khoulaiz avatar Oct 16 '23 08:10 Khoulaiz

+1 Our SelfMutate step is also failing today; even on reverting to v2.100.0 and lower.

HMthyl avatar Oct 16 '23 14:10 HMthyl

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.

avsteel avatar Oct 16 '23 22:10 avsteel

Agree with @avsteel, the latest 2.101.1 resolved the issue for me.

manu-remsense avatar Oct 17 '23 03:10 manu-remsense

I'm the same as avsteel and manu-remsense - 2.101.1 fixed this for us!

HMthyl avatar Oct 17 '23 08:10 HMthyl

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.

pahud avatar Oct 17 '23 16:10 pahud

⚠️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.

github-actions[bot] avatar Oct 17 '23 16:10 github-actions[bot]