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?

質問済み 3年前755ビュー
1回答
1
承認された回答

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.

回答済み 3年前
profile picture
エキスパート
レビュー済み 4ヶ月前
profile picture
エキスパート
レビュー済み 6ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ