MCPcopy Create free account
hub / github.com/agenticsorg/edge-agents / reboot_instance

Method reboot_instance

scripts/agents/devops/src/aws/ec2.py:258–273  ·  view source on GitHub ↗

Reboot an EC2 instance. Args: instance_id: The ID of the instance to reboot. Returns: Updated instance details.

(self, instance_id: str)

Source from the content-addressed store, hash-verified

256
257 @aws_operation("reboot_instance")
258 def reboot_instance(self, instance_id: str) -> Dict[str, Any]:
259 """
260 Reboot an EC2 instance.
261
262 Args:
263 instance_id: The ID of the instance to reboot.
264
265 Returns:
266 Updated instance details.
267 """
268 self.client.reboot_instances(InstanceIds=[instance_id])
269
270 # Wait a moment for the reboot to initiate
271 time.sleep(10)
272
273 return self.get_instance(instance_id)
274
275 @aws_operation("resize_instance")
276 def resize_instance(

Callers 1

deploy_from_githubMethod · 0.95

Calls 1

get_instanceMethod · 0.95

Tested by

no test coverage detected