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?

gefragt vor 3 Jahren758 Aufrufe
1 Antwort
1
Akzeptierte Antwort

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.

beantwortet vor 3 Jahren
profile picture
EXPERTE
überprüft vor 4 Monaten
profile picture
EXPERTE
überprüft vor 6 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen