部署Greengrass组件时,遇到如下错误:{s3://greengrass-tutorial/com.example.HelloWorld/1.1.0/helloWorld.zip = 指定的资源无法访问}。

0

【以下的问题经过翻译处理】 我正在按照这些Youtube教程进行操作:

  1. https://www.youtube.com/watch?v=hAZ-nlAaSvw&ab_channel=Michael
  2. https://www.youtube.com/watch?v=hAZ-nlAaSvw&ab_channel=Michael

根据第一个连接中的YouTube教程,我成功部署了一个打印“hello world!”的组件。我从s3存储桶中部署到greengrass,没有任何问题。

现在在第二个教程中,我正在部署一个新的组件版本。配置如下:

---
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

我使用aws cli将helloWorld.zip上传到greengrass-tutorial s3存储桶:

aws s3 cp ./helloWorld.zip s3://greengrass-tutorial/com.example.HelloWorld/1.1.0/helloWorld.zip 

helloWorld.zip包含hello_world.py和一个依赖项文件夹。

当我点击“创建版本”时,显示以下错误信息:

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

有谁能帮帮我呢?

profile picture
专家
已提问 5 个月前7 查看次数
1 回答
0

【以下的回答经过翻译处理】 在创建新的GreenGrass附加组件版本时,请确认组件所在的区域。必须是和GreenGrass设备激活的region相同,才能正常启用。

profile picture
专家
已回答 5 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则