Invalid Input: Encountered following errors in Artifacts: {s3://greengrass-tutorial/com.example.HelloWorld/1.1.0/helloWorld.zip = Specified artifact resource cannot be accessed}

0

I'm following these Youtube tutorials:

  1. https://www.youtube.com/watch?v=hAZ-nlAaSvw&ab_channel=Michael
  2. 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?

asked 2 years ago601 views
1 Answer
0
Accepted Answer

It turns out that I accidently was updating a copy of the component located in the wrong region, which I had made accidently and forgot to delete.

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions