Skip to content

feature request: Allow modification of system s3 Metadata(LastModified) #12040

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
marcfieldingbg opened this issue Dec 16, 2024 · 2 comments
Closed
1 task done
Labels
aws:s3 Amazon Simple Storage Service status: backlog Triaged but not yet being worked on status: resolved/stale Closed due to staleness type: feature New feature, or improvement to an existing feature

Comments

@marcfieldingbg
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Feature description

As a User I NEED to be able to create objects in an s3 bucket with the system metadata(LastModified) I specify SO THAT I can properly test time related maintenance actions.

🧑‍💻 Implementation

I'm not familiar with the LocalStack code base yet, however as an idea it could be an environment toggle via S3_SYSTEM_META=1 and then when using the cli or sdk you can just include the LastModified data you want via their respective metadata options.

It may be that it is possible to use this with all system meta data, however for this ticket I'd suggest scoping to purely LastModified for simplicity.

Anything else?

I'm currently working on a maintenance feature to move a large number of files that are over the age six months from the working folder in an s3 bucket to archive folder where files are placed under, for example archive/2024-DEC, because above a certain number of objects sorting/searching doesn't work well in the UI(we have business users that sometimes need to access it).

Regardless of which technology(Lambda/Glue etc) I use for this the only way I test it is by creating S3 objects and then changing the time in my code for 5mins, 1 day so it's not really a proper test of the actual deployed code. I need to be careful because the first run will move(copy/delete) a LOT of files, subsequent daily runs will be a few. Yeah there's ways round it by splitting the code and keeping logs of original file dates and then writing more code to fix it if something goes wrong, but it would be really useful if we could change system meta data in LocalStack and just test it properly!

@marcfieldingbg marcfieldingbg added status: triage needed Requires evaluation by maintainers type: feature New feature, or improvement to an existing feature labels Dec 16, 2024
@localstack-bot
Copy link
Collaborator

Welcome to LocalStack! Thanks for reporting your first issue and our team will be working towards fixing the issue for you or reach out for more background information. We recommend joining our Slack Community for real-time help and drop a message to LocalStack Pro Support if you are a Pro user! If you are willing to contribute towards fixing this issue, please have a look at our contributing guidelines and our contributing guide.

@JustANoobDev JustANoobDev added aws:s3 Amazon Simple Storage Service status: backlog Triaged but not yet being worked on and removed status: triage needed Requires evaluation by maintainers labels Dec 16, 2024
@localstack-bot
Copy link
Collaborator

Hello 👋! It looks like this issue hasn’t been active in longer than five months. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.

@localstack-bot localstack-bot added the status: stale To be closed soon due to staleness label May 15, 2025
@localstack-bot localstack-bot added status: resolved/stale Closed due to staleness and removed status: stale To be closed soon due to staleness labels May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws:s3 Amazon Simple Storage Service status: backlog Triaged but not yet being worked on status: resolved/stale Closed due to staleness type: feature New feature, or improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

3 participants