-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfilepicker-setup
38 lines (34 loc) · 996 Bytes
/
filepicker-setup
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
note: the implementation of PUBLIC_CONFIG implies that we are on the ddp-pre1
branch of meteor.
- create filepicker account
- create S3 bucket
- in amazon IAM, create a new user (whose key/secret is put in the filepicker app setup) with policy
{
"Statement": [
{
"Sid": "AllowPublicRead",
"Action": [
"s3:GetObject",
"s3:PutObject"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::net.davidglasser.robopop.filepicker/*"
]
}
]
}
- in s3, set this as a bucket security policy (allows public reads, given a hopefully-unguessable key)
{
"Statement": [
{
"Sid": "AllowPublicRead",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::NAME_OF_BUCKET_HERE/*"
}
]
}