AWS Security MCP

Apache 2.0
4
  • Apple

count_ec2_instances

Count EC2 instances in AWS environments, filtering by state, public access, and specific ports. Returns JSON with instance count data for security analysis and configuration checks.

Instructions

Count EC2 instances, optionally filtering by state and security group rules.

Args: state: Optional instance state to filter by (e.g., running, stopped, terminated) has_public_access: If set, only count instances with (True) or without (False) public internet access port: Optional specific port to check for access (e.g., 22 for SSH) Returns: JSON formatted string with instance count information

Input Schema

NameRequiredDescriptionDefault
has_public_accessNo
portNo
stateNo

Input Schema (JSON Schema)

{ "properties": { "has_public_access": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Has Public Access" }, "port": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Port" }, "state": { "default": "", "title": "State", "type": "string" } }, "title": "count_ec2_instancesArguments", "type": "object" }

You must be authenticated.

Other Tools from AWS Security MCP

Related Tools

ID: s0vblk657g