-
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
❗ NOTICE: Policy has invalid action (Service: S3, Status Code: 400, #27547
Comments
Also verified this is still happens with v2.101.0 of the CDK CLI. |
Same here with v2.101.0 of the CDK CLI |
related to #27542 |
+1 Having the exact same issue |
Same issue here:
|
Reverted in #27556 -- once the next release is published, the error shouldn't persist. |
@mbeacom thanks! |
Glad to see there's a fix. This has been particularly ugly for me as this seems to break any Setting that to |
@plumdog yikes... sorry about that. Patch should be out shortly. The EDIT: Oh but I just realized before it self-mutates, it's defaulting to latest cause you can't update it.... yeah, patch incoming shortly 😢 |
@MrArnoldPalmer indeed! I was able to mitigate by:
|
|
Please add your +1 👍 to let us know you have encountered this
Status: RESOLVED
Overview:
An incorrect action was previously added to the policy attached when calling
bucket.grantRead
based on an incorrect interpretation of an error message. This PR has been reverted and is awaiting release.Complete Error Message:
Workaround:
Downgrade to 2.100.0 of
aws-cdk-lib
if encountering this error.Solution:
Root cause PR has been reverted and a patch release is out v2.101.1
Related Issues:
#27389
#27564
Original Issue:
s3: Invalid Action Added When Using bucket.grantRead
Describe the bug
With this CDK code:
When updating from 2.100.0 to 2.101.0 and deploying the same stack I get this output:
Then the deployment fails with the error:
"Policy has invalid action (Service: S3, Status Code: 400,
It looks related to #27389.
I can't find
s3:HeadObject
in the docs (https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazons3.html) and the console will not let me create a policy with that permission.Should this have been
s3:GetObjectAttributes
instead?Expected Behavior
bucket.grantRead
should not add invalid actions to a policy.Current Behavior
bucket.grantRead
adds the invalid actions3:HeadObject
to the policy.Reproduction Steps
Possible Solution
Perhaps change
s3:HeadObject
tos3:GetObjectAttributes
?Additional Information/Context
No response
CDK CLI Version
2.97.0
Framework Version
2.101.0
Node.js Version
18.18.0
OS
Ubuntu
Language
TypeScript
Language Version
5.2.2
Other information
No response
The text was updated successfully, but these errors were encountered: