Skip to content

Commit 8381696

Browse files
authored
chore(docs): Add profile choosing note in readme
closes #77
1 parent e09ee9b commit 8381696

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ Note: This plugin needs NodeJS > 0.12.0
1717
### Usage Instructions
1818
> 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.
1919
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+
```
2126

2227
> 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)
2328

0 commit comments

Comments
 (0)