Implement single command for all steps of creating OTA update #86
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Introduces a new command to
tools/scripts/createIoTThings.py
thatThis command is documented in
aws_tool.md
.The command takes at most 2 command line arguments, with the rest
specified in a .json file, an example of which is also included in This
commit as well as the
aws_tool.md
documentation.Only 3 fields in the settings
.json
need to be filled in.The command also re-uses AWS entities where possible. E.g. if
the role specified by the
.json
already exists, it checks it can access the Bucketname specified before re-using the role.
The motivation for this commit is to make creating OTA updates
easier.
This MR also introduces a new command for cleaning up all
AWS entities specified by the .json config file.
This command is called
cleanup-simplified
.It will force-delete everything (including bucket contents). This
is not configurable.
Test Steps
Checklist:
Related Issue
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.