Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/craigpeacock/aws_provisioning
- Owner: craigpeacock
- Created: 2024-04-09T10:57:51.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-26T10:03:52.000Z (5 months ago)
- Last Synced: 2024-06-27T09:21:35.509Z (5 months ago)
- Topics: aws-iot-core, aws-sdk-net, provisioning
- Language: C#
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```