8000 s3 LifecycleRule.ExpirationDate: due to changes in CFN validation last week - template format is broken · Issue #28065 · aws/aws-cdk · GitHub
[go: up one dir, main page]

Skip to content
s3 LifecycleRule.ExpirationDate: due to changes in CFN validation last week - template format is broken #28065
@raziza

Description

@raziza

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-s3Related to Amazon S3bugThis issue is a bug.effort/mediumMedium work item – several days of effortp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0