Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create CloudFormation template for Fleet Provisioning demo setup #767

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

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.

None yet

3 participants