awslabs / amazon-kinesis-video-streams-producer-sdk-cpp

Amazon Kinesis Video Streams Producer SDK for C++ is for developers to install and customize for their connected camera and other devices to securely stream video, audio, and time-encoded data to Kinesis Video Streams.
Apache License 2.0
373 stars 334 forks source link

[QUESTION] IAM Policy for IoT specific resource for kinesis video stream #638

Closed wlinInspire closed 3 years ago

wlinInspire commented 3 years ago

Hi KVS team,

Following this doc Controlling Access to Kinesis Video Streams Resources Using AWS IoT, I successfully stream video to the thing name channel based on the following IAM policy

Resource: "arn:aws:kinesisvideo:*:*:stream/${credentails-iot:ThingName}/*"

However, it fails to send video to the corresponding channels if I change the policy to

Resource: 
    - "arn:aws:kinesisvideo:*:*:stream/${credentails-iot:ThingName}_1/*"
    - "arn:aws:kinesisvideo:*:*:stream/${credentails-iot:ThingName}_2/*"

Is there a way to stream video to multiple different but specific channels?

Thanks.

wlinInspire commented 3 years ago

@MushMal Could you please take a look at my question? Thanks.

MushMal commented 3 years ago

I assume you are referring to a stream rather than a channel. Each IoT certificate can be used for a single stream resource as the stream corresponds to the thing name.

I would also recommend contacting your AWS technical account manager for these types of questions as we might have limited knowledge of the IAM/IoT

disa6302 commented 3 years ago

Closing since the question is answered. Feel free to reopen if you have any more questions.