s3 LifecycleRule.ExpirationDate: due to changes in CFN validation last week - template format is broken #28065
Labels
@aws-cdk/aws-s3
Related to Amazon S3
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
Since last week our template failed to deploy. After talking to AWS customer services seems that last week a strict validation was forced now on this field. which leads the CDK output template to fail.
today the output results this text
"ExpirationDate": "2024-11-19T00:00:00"
as understood from the customer services -
Z
must be added in the end.our code is doing so:
lifecycleMaxSizeRuleBuilder.expirationDate(LocalDate.now().plus(1, ChronoUnit.YEARS).atStartOfDay().toInstant(ZoneOffset.UTC));
Expected Behavior
With Z in the end
"ExpirationDate": "2024-11-19T00:00:00Z"
Current Behavior
"ExpirationDate": "2024-11-19T00:00:00"
Reproduction Steps
simply synth
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.109.0
Framework Version
No response
Node.js Version
16.13.1
OS
Win 10
Language
Java
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: