mirror of https://github.com/arendst/Tasmota.git
wanted to add some automation, as this was quick to do and will help first timers on AWS
parent
7c1e841790
commit
41e9f09892
46
AWS-IoT.md
46
AWS-IoT.md
|
@ -61,6 +61,52 @@ You will need to install/compile the following:
|
|||
* Complete environment to compile Tasmota, ex: PlatformIO (https://github.com/arendst/Sonoff-Tasmota/wiki/PlatformIO)
|
||||
* Recent version of `openssl`
|
||||
|
||||
### Step 1.5 Deploy required resources using AWS CloudFormation and skip to Step 6.
|
||||
|
||||
The following AWS CloudFormation template will create these resources:
|
||||
|
||||
* One IAM Role
|
||||
* **LambdaExecutionRole** Will allow the Lambda function to write to CloudWatch for Logging.
|
||||
* One AWS Lambda function to create a CSR and Private Key as described in Step 3.
|
||||
* One Custom Resource to Invoke the Lambda function
|
||||
* One IoT Certificate using the Generated CSR
|
||||
* One IoT Thing
|
||||
* One IoT Policy
|
||||
* One IoT PolicyAssociation
|
||||
* One IoT ThingAssociation
|
||||
|
||||
|
||||
Click on the link for the region you have chosen:
|
||||
|
||||
Region| Code | Launch
|
||||
------|------|-------
|
||||
US East (N. Virginia) | <span style="font-family:'Courier';">us-east-1</span> | [![Launch IotThingGenerator in us-east-1](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/images/cloudformation-launch-stack-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=IotThingGenerator&templateURL=https://tasmota-aws-iot.s3-eu-west-1.amazonaws.com/IotThingGenerator.yaml)
|
||||
EU (Ireland) | <span style="font-family:'Courier';">eu-west-1</span> | [![Launch IotThingGenerator in eu-west-1](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/images/cloudformation-launch-stack-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-west-1#/stacks/new?stackName=IotThingGenerator&templateURL=https://tasmota-aws-iot.s3-eu-west-1.amazonaws.com/IotThingGenerator.yaml)
|
||||
<details>
|
||||
<summary><strong>AWS CloudFormation Launch Instructions (expand for details)</strong></summary><p>
|
||||
|
||||
1. Click the **Launch Stack** link above for the region of your choice.
|
||||
|
||||
1. Click **Next** on the Select Template page.
|
||||
|
||||
1. On the Specify Details page, leave all the defaults and click **Next**.
|
||||
|
||||
1. On the Options page, leave all the defaults and click **Next**.
|
||||
|
||||
1. On the Review page, Click the checkboxes to give AWS CloudFormation permission to **"create IAM resources"**
|
||||
|
||||
1. Click **"Create stack"**
|
||||
|
||||
1. Wait for the `IotThingGenerator` stack to reach a status of `CREATE_COMPLETE`.
|
||||
|
||||
1. With the `IotThingGenerator` stack selected, click on the **Outputs** tab. You will find your CSR and Private Key which will be referenced in the later steps.
|
||||
|
||||
</p></details>
|
||||
|
||||
> You may copy & paste the contents of the **Outputs** tab of the CloudFormation stack to a separate text editor for ease of access later.
|
||||
|
||||
skip to Step 6.
|
||||
|
||||
### Step 2. Configure AWS IoT (to be done once)
|
||||
|
||||
Open the AWS Console.
|
||||
|
|
Loading…
Reference in New Issue