how to create aws stream with cli input json file

0

Hi,

I am trying to follow the instructions in (https://docs.aws.amazon.com/iot/latest/developerguide/mqtt-based-file-delivery-managing.html) to create a stream for my application purpose. however, when following the instruction in the doc, I was stuck at trying to following step (https://docs.aws.amazon.com/cli/latest/reference/iot/create-stream.html), there's a json file as follows, how do I create this json file ? Thanks in advance.

Contents of create-stream.json:


{
    "streamId": "stream12345",
    "description": "This stream is used for Amazon FreeRTOS OTA Update 12345.",
    "files": [
        {
            "fileId": 123,
            "s3Location": {
                "bucket":"codesign-ota-bucket",
                "key":"48c67f3c-63bb-4f92-a98a-4ee0fbc2bef6"
            }
        }
    ]
    "roleArn": "arn:aws:iam:123456789012:role/service-role/my_ota_stream_role"
}
2 個答案
1

Hi,

you can create the json file with the editor of your choice or also programmatically.

KR,

Philipp

AWS
專家
已回答 2 年前
  • Hi, Philipp,

    how do I get the following values in the example json file:

    1 . "fileId": 123,

    1. "key":"48c67f3c-63bb-4f92-a98a-4ee0fbc2bef6"

    Thanks, EngineerY

0

I found the answer in AWS documentation from a few layered links, I really think AWS could improve this guide to provide step by step instruction. please help close this issue.

已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南