summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorYukai Huang2016-11-16 14:46:38 +0800
committerYukai Huang2016-11-16 14:46:38 +0800
commit1f409197c350f04caf878d0e8926d5edd882f4f5 (patch)
tree363eb38c1547bc894c081ce6dccd02f15e932e0f /docs
parent2b2c5935312372e9be4ca092024fdd5ce691de7b (diff)
Fix order list
Diffstat (limited to 'docs')
-rw-r--r--docs/guides/s3-image-upload.md58
1 files changed, 29 insertions, 29 deletions
diff --git a/docs/guides/s3-image-upload.md b/docs/guides/s3-image-upload.md
index 4c9faded..c92e91f8 100644
--- a/docs/guides/s3-image-upload.md
+++ b/docs/guides/s3-image-upload.md
@@ -12,19 +12,19 @@
![bucket-policy-editor](images/s3-image-upload/bucket-policy-editor.png)
-```json
-{
- "Version": "2012-10-17",
- "Statement": [
- {
- "Effect": "Allow",
- "Principal": "*",
- "Action": "s3:GetObject",
- "Resource": "arn:aws:s3:::bucket_name/uploads/*"
- }
- ]
-}
-```
+ ```json
+ {
+ "Version": "2012-10-17",
+ "Statement": [
+ {
+ "Effect": "Allow",
+ "Principal": "*",
+ "Action": "s3:GetObject",
+ "Resource": "arn:aws:s3:::bucket_name/uploads/*"
+ }
+ ]
+ }
+ ```
4. Go to IAM console and create a new IAM user. Remember your user credentials(`key`/`access token`)
@@ -40,22 +40,22 @@
![review-policy](images/s3-image-upload/review-policy.png)
-```json
-{
- "Version": "2012-10-17",
- "Statement": [
- {
- "Effect": "Allow",
- "Action": [
- "s3:*"
- ],
- "Resource": [
- "arn:aws:s3:::bucket_name/uploads/*"
- ]
- }
- ]
-}
-```
+ ```json
+ {
+ "Version": "2012-10-17",
+ "Statement": [
+ {
+ "Effect": "Allow",
+ "Action": [
+ "s3:*"
+ ],
+ "Resource": [
+ "arn:aws:s3:::bucket_name/uploads/*"
+ ]
+ }
+ ]
+ }
+ ```
## Related Tools