Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/craigpeacock/aws_provisioning

C# Examples for Provisioning Things in AWS IoT
https://github.com/craigpeacock/aws_provisioning

aws-iot-core aws-sdk-net provisioning

Last synced: 4 days ago
JSON representation

C# Examples for Provisioning Things in AWS IoT

Awesome Lists containing this project

README

        

# Example Code for Provisioning AWS IoT Core 'Things' using AWS SDK for .NET

This example uses the [AWS SDK for .NET](https://docs.aws.amazon.com/sdk-for-net/) Version 3.0 to Create a Thing in IoT Core.

## Authentication

This example supports the following credentials:
* IAM Identity Center (SSO) / Short-term Credentials - Using short-term credentials that expire between 1 and 12 hours. If the credential has expired, the app will open a web browser and allow the user to re-authenicate and obtain a new token.
* Legacy SSO/IAM - Non-refreshable tokens. The user must manually refresh the token when it expires.
* Long Term Credentials (Legacy) - Access Key/Secret Access Key pairs that never expire.

## AWS Profile Setup

The AWS Provisioning Application requires the creation of a profile before it can it can used. The profile contains information on your account, region, authentication method etc.

The easiest way to set up AWS profiles is via the [AWS CLI (Command Line Interface)](https://aws.amazon.com/cli/). Download and install on your machine.

To configure a profile for Single Sign On (SSO) execute the following
```
aws configure sso
```
Additional information can be found at [Single sign-on with the AWS SDK for .NET](https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/sso.html)

## API Reference

* [API Reference for the AmazonIoTClient](https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/IoT/TIoTClient.html)
* [API Reference for the AmazonIoTWirelessClient (LoRaWAN)](https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/IoTWireless/TIoTWirelessClient.html)

## NUGET Packages

This example is built using the following packages:

* [AWSSDK.IoT](https://www.nuget.org/packages/AWSSDK.IoT)
* [AWSSDK.SecurityToken](https://www.nuget.org/packages/AWSSDK.SecurityToken)

```
> dotnet add package AWSSDK.IoT
> dotnet add package AWSSDK.SecurityToken
```