Skip to content

aws-s3-deployment: DeployTimeSubstitutedFile doesn't keep original file name #28450

@garysassano

Description

@garysassano

Describe the bug

When using DeployTimeSubstitutedFile, it might seem logical to assume that the uploaded file name, where substitutions are made, remains unchanged. However, this is not the case. Surprisingly, the system utilizes the file's fingerprint as the object key, rather than retaining the original file name. This approach can be quite unintuitive and unhelpful.

image

Expected Behavior

see above

Current Behavior

see above

Reproduction Steps

see above

Possible Solution

Use the original file name as the object key.

Additional Information/Context

No response

CDK CLI Version

2.115.0

Framework Version

No response

Node.js Version

18.18.2

OS

Windows 11 23H2

Language

TypeScript

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions