Skip to content
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

AWS S3 data tranfer usage too high #4188

Closed
rico-c opened this issue May 28, 2023 · 4 comments
Closed

AWS S3 data tranfer usage too high #4188

rico-c opened this issue May 28, 2023 · 4 comments

Comments

@rico-c
Copy link

rico-c commented May 28, 2023

Bug report

Describe the bug

I just deployed my medusa app backend on railway, and I have create a AWS S3 bucket and used it for coupe of days, only four images were putted on the bucket, and each one is around 200kb, when I check the billing, I found out that AWS charge me $2 per day for data transfer fee of 250GB, I am just want to know is this meeting expectations?

System information

Medusa version (including plugins):
Node.js version:
Database:
Operating system:
Browser (if relevant):

Steps to reproduce the behavior

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen

Screenshots

If applicable, add screenshots to help explain your problem

Code snippets

If applicable, add code samples to help explain your problem

Additional context

Add any other context about the problem here

@pevey
Copy link
Contributor

pevey commented May 28, 2023

That's extremely unusual. Medusa itself doesn't transfer data to and from s3, so you won't be able to troubleshoot without looking at the s3 logs, which are kind of a pain:

https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-s3-access-logs-to-identify-requests.html#using-s3-access-logs-to-identify-objects-access

Medusa stores the url, but calls to the url only happen from client browsers. Is this a test instance or a live store?
If it's a test instance, you should only see your IP. If it's a live store, maybe look for a stranger referrer, or maybe a mass number of requests from particular machines or regions, or other indications of hotlinking or abuse.

@ShivamJoker
Copy link

@rico-c someone must be dosing your S3 bucket, it's not a good idea to store images the way medusa suggests.

See more at #3938

@SGFGOV
Copy link
Contributor

SGFGOV commented May 28, 2023 via email

@rico-c
Copy link
Author

rico-c commented May 30, 2023

I found out the reason, because I used Microtica to deploy my backend and Microtica create some service automaticlly, and I close the project on Microtica but they did not terminate the resource on my AWS, so they still charging me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants