(@aws-cdk/s3): InventoryConfiguration[].Id exceeds maximum size allowed by the PutBucketInventoryConfiguration API, when NodeId is overly long #27793
Labels
@aws-cdk/aws-s3
Related to Amazon S3
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
Describe the bug
In cases where the node-id of the bucket is quite long, the generated
InventoryConfiguration[].Id
will be longer than the S3 PutBucketInventoryConfiguration API allows. This will cause the cloudformation deployment to fail:Expected Behavior
The automatically generated id will satisfy the S3 API and the deployment will be successful.
Current Behavior
The deployment fails and Cloudformation errors:
Reproduction Steps
Example to reproduce:
Possible Solution
Truncating the inventory-id to 64 characters.
A workaraound is to set the id manually:
Additional Information/Context
Relevant correspondence with the AWS support
CDK CLI Version
2.103.1 (build 3bb19ac)
Framework Version
2.103.1
Node.js Version
v18.17.0
OS
Linux 5.15.133-1-MANJARO #1 SMP PREEMPT Sat Sep 23 10:10:02 UTC 2023 x86_64 GNU/Linux
Language
TypeScript
Language Version
Typescript 5.2.2
Other information
No response
The text was updated successfully, but these errors were encountered: