-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-config.js.template
48 lines (44 loc) · 1.52 KB
/
test-config.js.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
'use strict';
const AWS = require('aws-sdk');
module.exports = {
// Name of bucket where tests will create and delete objects.
// It should not be used for any other purpose.
bucket: '',
// AWS region in which the bucket resides.
region: '',
// AWS credentials. See:
// https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-credentials-node.html
//
// The test user should have least privileges; the tests require
// s3:PutObject, s3:GetObject, s3:ListBucket, s3:DeleteObject. For example
// you could create a test user and attach this policy to the user:
// {
// "Version": "2012-10-17",
// "Statement": [
// {
// "Sid": "S3LogIntegrationTestUserPolicy",
// "Effect": "Allow",
// "Action": [
// "s3:PutObject",
// "s3:GetObject",
// "s3:ListBucket",
// "s3:DeleteObject"
// ],
// "Resource": [
// "arn:aws:s3:::testbucket",
// "arn:aws:s3:::testbucket/*"
// ]
// }
// ]
// }
//
// If you want to use the shared credentials file:
// credentials: new AWS.SharedIniFileCredentials({profile: 'test-profile'})
//
// If you want to put credentials here directly:
// credentials: {
// accessKeyId: 'MyKeyId',
// secretAccessKey: 'MySecret'
// }
credentials: null
};