We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
node version: v12.13.0 webpack-s3-plugin version: 1.0.3 os: macos Mojave
Receiving following error on build:
Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1
The s3options section supports providing credentials like this:
s3Options: { credentials: new AWS.SharedIniFileCredentials({profile: 'my-profile'}) },
This works for the S3 calls, but produces an error after the S3 upload if cloudfrontInvalidateOptions is present.
cloudfrontInvalidateOptions
From looking at the source it's clear why, the s3Options.credentials value is simply not considered as a credentials source:
s3Options.credentials
if (cloudfrontInvalidateOptions.DistributionId) { const {accessKeyId, secretAccessKey, sessionToken} = clientConfig.s3Options const cloudfront = new CloudFront({accessKeyId, secretAccessKey, sessionToken})
Presumably CloudFront can also use the s3Options.credentials source, if not the documentation should be updated to indicate this.
CloudFront
The text was updated successfully, but these errors were encountered:
No branches or pull requests
node version: v12.13.0
webpack-s3-plugin version: 1.0.3
os: macos Mojave
Receiving following error on build:
Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1
The s3options section supports providing credentials like this:
This works for the S3 calls, but produces an error after the S3 upload if
cloudfrontInvalidateOptions
is present.From looking at the source it's clear why, the
s3Options.credentials
value is simply not considered as a credentials source:Presumably
CloudFront
can also use thes3Options.credentials
source, if not the documentation should be updated to indicate this.The text was updated successfully, but these errors were encountered: