Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Using IoT certificate for credentials #68

Open
pavloblindnology opened this issue Feb 4, 2021 · 0 comments
Open

Using IoT certificate for credentials #68

pavloblindnology opened this issue Feb 4, 2021 · 0 comments

Comments

@pavloblindnology
Copy link

Currently, there is no option to get session credentials with IoT certificate.
You need to either set environment variables or use ~/.aws/credentials.

I see, though, that aws_common has IotRoleCredentialsProvider
https://github.com/aws-robotics/utils-common/blob/3d9bd8d6592ead23821c9cff61a0c6ad5add52e0/aws_common/include/aws_common/sdk_utils/auth/service_credentials_provider.h#L129
and ServiceCredentialsProviderChain which includes IotRoleCredentialsProvider (none are used anywhere in aws-robotics)
https://github.com/aws-robotics/utils-common/blob/3d9bd8d6592ead23821c9cff61a0c6ad5add52e0/aws_common/include/aws_common/sdk_utils/auth/service_credentials_provider.h#L175
that can be fed to KinesisStreamManager while initializing video producer
https://github.com/aws-robotics/kinesisvideo-common/blob/3fcdab96689e2cb4a213332add48525a5c75f30d/kinesis_manager/include/kinesis_manager/kinesis_stream_manager.h#L253

Also, seems like IoT credentials need to be used when creating KinesisClient, but KinesisClientFacade cannot be used here bcz it doesn't have constructor version with credentials provider as a parameter

auto kinesis_client = std::unique_ptr<KinesisClient>(

The question is is there any reason why this hasn't been implemented
and how can I add the option the easiest way?
Would be grateful for any advise.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant