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?

feita há 3 anos755 visualizações
1 Resposta
1
Resposta aceita

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.

respondido há 3 anos
profile picture
ESPECIALISTA
avaliado há 4 meses
profile picture
ESPECIALISTA
avaliado há 6 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas