Skip to content

Commit

Permalink
Merge pull request #2 from awslabs/Cyril-Lagrange-testing-instruction
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Cyril-Lagrange authored Apr 6, 2022
2 parents 9d41b52 + 92ca22e commit 2d65bae
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,24 @@ GreengrassV2TokenExchangeRole has access to the bucket listed in the configurati

You need to make sure that the local ggc_user has access to PathName.

## Testing
Deploy the component with the following configuration:
```
PathName: "/home/gcc_user/upload/*.txt"
BucketName: <put-you-bucket-name-here>
Interval: 10
```
Log into the component and create a text file in the /home/gcc_user/upload folder:
```
echo test1.txt > /home/gcc_user/upload
```
Create another test file:
```
echo test2.txt > /home/gcc_user/upload
```

Check that test1.txt has been uploaded to S3 bucket, you mayhave to wait 10s.

## Local log file
This component uses the following local log file:
```
Expand All @@ -89,4 +107,4 @@ pytest tests
```
## License

This library is licensed under the Apache 2.0 License.
This library is licensed under the Apache 2.0 License.

0 comments on commit 2d65bae

Please sign in to comment.