Skip to main content

AWS EC2 operations

v0.1.3

EC2 instance inventory + state introspection plus narrow mutators (stop, start, reboot, terminate). Auth via AWS_PROFILE + AWS_REGION on the runner host.

7 allowed by default 3 need approval by default 1 denied by default
Pack ID
aws-ec2
Vendor
emisar
OS
linux
Actions
11
Required binaries. Install these on the host before relying on the pack — an action that calls a missing one fails at run time.
aws

Install

emisar pack install fetches this pack, re-validates it, and verifies its content hash against the --hash below — the exact bytes this page was rendered against, so a tampered copy is rejected — before copying it into the runner's packs dir. The command reloads a running daemon itself; no manual restart.

on the runner host
sudo emisar pack install aws-ec2 --hash sha256:485aeeeb372b5f441b12d1b4419dfd00a094fcd1bb2091e7b6dd3ed19826179a

Actions 11 total

View on GitHub
  • ec2.console_output exec low

    aws ec2 get-console-output

    Get serial console output for one instance. Useful for boot diagnostics.

    View source on GitHub
  • ec2.describe_instance_one exec low

    aws ec2 describe-instances --instance-ids

    Get details for one EC2 instance.

    View source on GitHub
  • ec2.describe_instances exec low

    aws ec2 describe-instances

    List all EC2 instances in the configured region with state + tags + IPs.

    View source on GitHub
  • ec2.describe_security_groups exec low

    aws ec2 describe-security-groups

    List all SGs with ingress/egress rules.

    View source on GitHub
  • ec2.describe_subnets exec low

    aws ec2 describe-subnets

    List all subnets in this region.

    View source on GitHub
  • ec2.describe_volumes exec low

    aws ec2 describe-volumes

    List all EBS volumes with size + state + attachment.

    View source on GitHub
  • ec2.instance_status exec low

    aws ec2 describe-instance-status

    Show per-instance system + instance status checks.

    View source on GitHub
  • ec2.reboot_instance exec high

    aws ec2 reboot-instances

    Reboots one instance. Instance keeps its IPs + ephemeral storage.

    View source on GitHub
  • ec2.start_instance exec high

    aws ec2 start-instances

    Starts one stopped instance.

    View source on GitHub
  • ec2.stop_instance exec high

    aws ec2 stop-instances

    Stops one instance. Public IP is released (use Elastic IP to retain).

    View source on GitHub
  • ec2.terminate_instance exec critical

    aws ec2 terminate-instances

    Permanently destroys one instance + its ephemeral storage. Cannot be undone.

    View source on GitHub