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

Extend createiotthings py functionality #88

Merged

Conversation

RC-Repositories
Copy link
Contributor

Description

In createIoTThings.py there is a command that takes a .json config and deletes all AWS entities described in there. This PR extends that command to search the credentials directory, and identify AWS Thing certificates before asking to delete these Things and their possibly related entities (which are generated using the .json config as well). This PR also documents this command in aws_tool.md.

This PR extends support for the .json config introduced by create-update-simplified and cleanup-simplified. This PR also documents this change in aws_tool.md and updates the example .json config with 4 new fields. The user-inputted variables are now stored in a dictionary data type within the Python script, as this makes it possible to extract the logic for getting these variables (either from the JSON or command line) into a single function to avoid code duplication.

Test Steps

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

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.

This commit extends support for the .json config introduced by
`create-update-simplified` and `cleanup-simplified`.
This commit also documents this change in `aws_tool.md` and
updates the example .json config with 4 new fields.
The user-inputted variables are now stored in a dictionary, as this
makes it possible to extract the logic for getting these variables
(either from the JSON or command line) into a single function to avoid
code duplication.
This commit also modifies internal storage of application types to use
'-' rather than '_' between words.

Signed-off-by: Reuben Cartwright <Reuben.Cartwright@arm.com>
In `createIoTThings.py` there is a command that takes a .json config
and deletes all AWS entities described in there.

This commit extends that command to search the credentials directory,
and identify AWS Thing certificates before deleting these
Things and their possibly related entities (which are generated using
the .json config as well). This behaviour only occurs if the `extended`
flag is set on the cleanup command.

This commit also documents this command in `aws_tool.md`.

Signed-off-by: Reuben Cartwright <Reuben.Cartwright@arm.com>
@RC-Repositories RC-Repositories requested a review from a team as a code owner September 19, 2024 15:02
@aggarg aggarg merged commit c8620fe into FreeRTOS:main Sep 20, 2024
16 checks passed
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