aws-s3: grant*()
methods with a managed policy for external buckets created with fromBucketAttributes()
caused error
#30276
Labels
@aws-cdk/aws-s3
Related to Amazon S3
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
Describe the bug
When I try to pass a managed policy to any of the
grant*()
methods of an external S3 bucket created usingfromBucketAttributes()
, I get the following error:Expected Behavior
No error.
Current Behavior
The previously noted error.
Reproduction Steps
Possible Solution
No response
Additional Information/Context
I'm using
fromBucketAttributes()
because I want thegrant*()
methods to grant both the bucket and key permissions.CDK CLI Version
2.142.0
Framework Version
No response
Node.js Version
20.10.0
OS
Sonoma 14.3.1
Language
TypeScript
Language Version
5.3.3
Other information
No response
The text was updated successfully, but these errors were encountered: