Expose a cli command to restart ec2 instances#6915
Merged
Conversation
…he python wrapper
gherceg
reviewed
Jun 15, 2026
ran manage-commcare-cloud make-docs > docs/source/reference/1-commcare-cloud/commands.md again
since we have terraform to manage other ec2 functionality so we don't expect a scope creep for this command, so this should be fine to be called ec2
let user know the implications of stop and stop_and_start and guide them to pass the option. This would eventually be removed when graceful stop would be implemented
Contributor
Author
|
@gherceg The comments have been addressed and this is ready for review again. |
gherceg
approved these changes
Jun 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Building on top of #6905, we are exposing a cli which will help us to do restarts of ec2 instances.
The PR creates a role, a playbook and a cli for
ec2_instance_statecommand.The role would be used later in the playbooks where we would be issuing start and stop commands to the instances.
The playbook was required to expose the role for the CLI.
Environments Affected
All