Skip to content

Commit 144be93

Browse files
committed
updated documentation
1 parent 9f4f38b commit 144be93

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ In order to set these configurations manually, edit `demo_config.h` in `demos/ht
470470
* Set `S3_PRESIGNED_GET_URL` to a S3 presigned URL with GET access.
471471
* Set `S3_PRESIGNED_PUT_URL` to a S3 presigned URL with PUT access.
472472

473-
You can generate the presigned urls using [demos/http/common/src/presigned_urls_gen.py](demos/http/common/src/presigned_urls_gen.py). More info can be found [here](demos/http/common/src/README.md).
473+
You can generate the presigned urls using [demos/http/common/src/presigned_urls_gen.py](demos/http/common/src/presigned_urls_gen.py) (more info can be found [here](demos/http/common/src/README.md)) or [demos/http/http_demo_s3_generate_presigned_url/README.md](demos/http/http_demo_s3_generate_presigned_url/README.md).
474474

475475
#### Configure S3 Download HTTP Demo using SigV4 Library:
476476

demos/http/http_demo_s3_generate_presigned_url/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,15 @@ Run the following command in the AWS CLI to create an IAM role with the precedin
5959
```sh
6060
aws iam create-role --role-name s3-access-role --assume-role-policy-document file://trustpolicyforiot.json
6161
```
62-
The following s3 access policy allows you to perform actions on S3. Put the following policy in a text document and save the document with the name `accesspolicyfors3.json`.
62+
The following s3 access policy allows you to perform GET and PUT actions on S3. You can remove the "s3:PutObject" if only download is required (no upload e.g. http_demo_s3_upload). Put the following policy in a text document and save the document with the name `accesspolicyfors3.json`.
6363
```
6464
{
6565
"Version": "2012-10-17",
6666
"Statement": {
6767
"Effect": "Allow",
6868
"Action": [
69-
"s3:GetObject"
69+
"s3:GetObject",
70+
"s3:PutObject"
7071
],
7172
"Resource": "arn:aws:s3:::BUCKET_NAME/*"
7273
}

0 commit comments

Comments
 (0)