I'm following these Youtube tutorials:
- https://www.youtube.com/watch?v=hAZ-nlAaSvw&ab_channel=Michael
- https://www.youtube.com/watch?v=hAZ-nlAaSvw&ab_channel=Michael
I was able to successfully deploy a component that printed "hello world!" based on the first YouTube tutorial. I had no problems reading from the s3 bucket.
I'm now deploying a new component version in the second tutorial. I have the following recipe:
---
RecipeFormatVersion: '2020-01-25'
ComponentName: com.example.HelloWorld
ComponentVersion: '1.1.0'
ComponentDescription: My first AWS IoT Greengrass component.
ComponentPublisher: Me
ComponentConfiguration:
DefaultConfiguration: {}
Manifests:
- Platform:
os: linux
Lifecycle:
Run:
PYTHONPATH="{artifacts:decompressedPath)/helloWorld/dependencies" python3 -u {artifacts:decompressedPath}/helloWorld/hello_world.py
Artifacts:
- URI: s3://greengrass-tutorial/com.example.HelloWorld/1.1.0/helloWorld.zip
Unarchive: ZIP
I have uploaded my helloWorld.zip to the greengrass-tutorial s3 bucket using the aws cli:
aws s3 cp ./helloWorld.zip s3://greengrass-tutorial/com.example.HelloWorld/1.1.0/helloWorld.zip
the helloWorld.zip contains hello_world.py and a dependencies folder.
When I click "Create version" I get the following error message: Invalid Input: Encountered following errors in Artifacts: {s3://greengrass-tutorial/com.example.HelloWorld/1.1.0/helloWorld.zip = Specified artifact resource cannot be accessed}
Would anyone be able to help me?