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

Slow Uploading to S3 when using IAM Role #109

Open
6 tasks done
edwardjlam opened this issue Sep 17, 2018 · 4 comments
Open
6 tasks done

Slow Uploading to S3 when using IAM Role #109

edwardjlam opened this issue Sep 17, 2018 · 4 comments

Comments

@edwardjlam
Copy link

edwardjlam commented Sep 17, 2018

Complete the following or your issue will be deleted (delete me after)

Please complete these steps and check these boxes (by putting an x inside
the brackets) before filing your issue:

  • I have read and understood this plugin's README
  • If filing a bug report, I have included my version of node and s3-plugin-webpack
  • If filing a bug report, I have included which OS (including specific OS
    version) I am using.
  • If filing a bug report, I have included a minimal test case that reproduces
    my issue.
  • I understand this is an open-source project staffed by someone with a job and
    that any help I receive is done on free time. I know I am not entitled to anything and will be polite and courteous.
  • I understand my issue may be closed if it becomes obvious I didn't
    actually perform all of these steps or the issue is not with the library itself

Thank you for adhering to this process! This ensures that I can pay attention to issues that are relevant and answer questions faster.

Issue Details

If filing a bug report, please include a list of steps that describe how to
reproduce the bug you are experiencing. Include your config being passed to the S3Plugin.

Versions used:
os: ubuntu 16.04
node: 8.11.4
npm: 6.4.0
webpack: 3.12.0
s3-webpack-plugin: 1.0.0-rc.0

Issue:
When uploading to s3 the process is slow when credentials are pulled through the IAM Role meta-data that is associated with the ec2 instance.

Steps to reproduce:
Run webpack with the s3-webpack-plugin and attempt to upload to s3 with out providing credentials in either the config file or as an environment variable.

Expected result: uploading of all assets should take the same time when using IAM role or hard coding credentials

Actual results: uploading with the IAM role takes about 4 times as long as hardcoding the Credentials.

@MikaAK
Copy link
Owner

MikaAK commented Sep 18, 2018

I have no idea why this would be, any further investigation is welcome.

@gracefullee
Copy link

@eddjlam upgrade your webpack-s3-plugin to 1.0.2, that did the trick for us.

@edwardjlam
Copy link
Author

edwardjlam commented Oct 5, 2018

@gracefullee I'm unable to update to 1.0.2 as it has a dependency of webpack4. I've worked around this issue by getting the AWS credentials from the meta data endpoint and placing them in environment variables. the root cause seems to be the AWS STS endpoint

Repository owner deleted a comment from lasantha57 May 20, 2019
@MikaAK
Copy link
Owner

MikaAK commented May 20, 2019

Please make a new issue with more info @lasantha57

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

3 participants