You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> I notice a lot of people are setting the `directory` option when the files are part of their build. Please don't set `directory` if you're uploading your build. Using the `directory` option reads the files after compilation to upload instead of from the build process.
19
19
20
-
> You can also use a [credentials file](https://blogs.aws.amazon.com/security/post/Tx3D6U6WSFGOK2H/A-New-and-Standardized-Way-to-Manage-Credentials-in-the-AWS-SDKs) from AWS.
20
+
> You can also use a [credentials file](https://blogs.aws.amazon.com/security/post/Tx3D6U6WSFGOK2H/A-New-and-Standardized-Way-to-Manage-Credentials-in-the-AWS-SDKs) from AWS. To set the profile set your s3 options to the following:
21
+
```
22
+
s3Options: {
23
+
credentials: new AWS.SharedIniFileCredentials({profile: 'PROFILE_NAME'})
24
+
}
25
+
```
21
26
22
27
> s3UploadOptions default to `ACL: 'public-read'` so you may need to override if you have other needs. See [#28](https://github.com/MikaAK/s3-plugin-webpack/issues/28#issuecomment-309171024)
0 commit comments