
1.
In the Command Prompt, run command:
aws cloudformation package --template-file
create_iot_policy_mobile_app.template.yaml --s3-bucket <YOUR BUCKET NAME>
--output-template-file create_iot_policy_mobile_app.package.yaml
.
Figure 10-19. Console Log
2.
Run command:
aws cloudformation deploy --template-file
create_iot_policy_mobile_app.package.yaml --stack-name createIoTPolicy --
capabilities CAPABILITY_NAMED_IAM --profile ZTUser
.
Figure 10-20. Console Log
3.
https://console.aws.amazon.com/cloudformation
and find the new stack created using
“createIoTPolicy”. An AWS IoT Policy “WiFiSmartDeviceAppPolicy” is successfully created. The
developer can check this in the AWS IoT console.
Figure 10-21. Status of createIoTPolicy
10.5
Create AWS DynamoDB Table
Perform the following steps for creating AWS DynamoDB table:
1.
In the Command Prompt, run command:
aws cloudformation package --template-file
create_dynamodb.template.yaml --s3-bucket <YOUR BUCKET NAME> --output-
template-file create_dynamodb.package.yaml
.
Figure 10-22. Console Log
ATWINC15x0 Smart Device Kit
Appendix C: AWS CloudFormation to Setup Cl...
©
2019 Microchip Technology Inc.
User Guide
DS50002885A-page 85