By using AWS re:Post, you agree to the Terms of Use
/how to create aws stream with cli input json file/

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

Hi,

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

KR,

Philipp

answered 24 days ago
  • 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.

answered 18 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions