Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@johnrhen
Copy link
Contributor

@johnrhen johnrhen commented Jan 5, 2022

CloudFormation allows multiple AWS resources to be created and grouped together. This PR adds a CloudFormation template which sets up all the various AWS resources required for the Fleet Provisioning demo. Using the template requires the AWS CLI to be installed and configured.

To use the template, first create the keys in the same directory as the Fleet Provisioning demo:

aws iot create-keys-and-certificate \
 --certificate-pem-outfile "ClaimCertificate.pem" \
 --public-key-outfile "ClaimPubKey.pem" \
 --private-key-outfile "ClaimPrivateKey.pem" \
 --set-as-active

Then, run the following command after replacing <certificateId> with the certificateId listed in the previous command's output:

aws cloudformation create-stack \
  --stack-name FPDemoStack \
  --template-body file://demo_cloudformation_template.json \
  --capabilities CAPABILITY_NAMED_IAM \
  --parameters ParameterKey=CertificateId,ParameterValue=<certificateId>

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@johnrhen johnrhen requested a review from a team as a code owner January 5, 2022 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants