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
Copy file name to clipboardExpand all lines: README.md
+8-11Lines changed: 8 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,14 @@ parse-server adapter for AWS S3
10
10
11
11
`npm install --save parse-server-s3-adapter`
12
12
13
-
# aws credentials
13
+
# AWS Credentials
14
+
15
+
## Deprecation Notice -- AWS Credentials
16
+
*the ability to explicitly pass credentials to this adapter is deprecated and will be removed in a future release.*
14
17
15
18
Although it is not recommended, AWS credentials can be explicitly configured through an options
16
19
object, constructor string arguments or environment variables ([see below](#using-a-config-file)).
17
-
This option is provided for backward compatibility.
20
+
This option is provided for backward compatibility and will be removed in the forthcoming version 2.0 of this adapter.
18
21
19
22
The preferred method is to use the default AWS credentials pattern. If no AWS credentials are explicitly configured, the AWS SDK will look for credentials in the standard locations used by all AWS SDKs and the AWS CLI. More info can be found in [the docs](http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#config-settings-and-precedence). For more information on AWS best practices, see [IAM Best Practices User Guide](http://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html).
20
23
@@ -32,8 +35,6 @@ The preferred method is to use the default AWS credentials pattern. If no AWS c
32
35
"options": {
33
36
"bucket": "my_bucket",
34
37
// optional:
35
-
"accessKey": "accessKey",
36
-
"secretKey": "secretKey",
37
38
"region": 'us-east-1', // default value
38
39
"bucketPrefix": '', // default value
39
40
"directAccess": false, // default value
@@ -55,11 +56,9 @@ Set your environment variables:
55
56
S3_BUCKET=bucketName
56
57
```
57
58
58
-
the following optional configurations can be set by environment variables too:
59
+
the following optional configuration can be set by environment variable too:
59
60
60
61
```
61
-
S3_ACCESS_KEY=accessKey
62
-
S3_SECRET_KEY=secretKey
63
62
S3_SIGNATURE_VERSION=v4
64
63
```
65
64
@@ -100,8 +99,8 @@ var api = new ParseServer({
100
99
```
101
100
S3Adapter("bucket")
102
101
S3Adapter("bucket", options)
103
-
S3Adapter("key", "secret", "bucket")
104
-
S3Adapter("key", "secret", "bucket", options)
102
+
S3Adapter("key", "secret", "bucket") -- Deprecated, see notice above
103
+
S3Adapter("key", "secret", "bucket", options) -- Deprecated, see notice above
105
104
S3Adapter(options) // where options must contain bucket.
106
105
S3Adapter(options, s3overrides)
107
106
```
@@ -117,8 +116,6 @@ var S3Adapter = require('parse-server-s3-adapter');
0 commit comments