AWS

Download 617
Last updated Dec 1, 2026

aws-ec2-addresses

Retrieves a list of allocated AWS Elastic IP addresses.

Syntax

aws-ec2-addresses [profile=STRING] [region=STRING]

Options

profile=STRING
Optional option. The identifier of AWS connect profile When omitted, every AWS connect profile the user may use is queried.
region=STRING
Optional option. AWS region Accepts a comma separated list. When omitted, every client region of the connect profile is queried.

Output fields

FieldTypeNameDescription
aws_profilestringConnect profileThe identifier of AWS connect profile
regionstringRegione.g. ap-northeast-2
instance_idstringInstance IDe.g. i-00123456789abcdef
public_ipipPublic IP
private_ipipPrivate IP
domainstringDomainEC2-Classic (standard) or VPC (vpc)
alloc_idstringAllocation IDThe ID representing the allocation of the address for use with EC2-VPC.
assoc_idstringAssociation IDThe ID representing The association of the address with an instance in a VPC.
nic_idstringNIC IDThe ID of the network interface.
nic_owner_idstringNIC owner IDThe ID of the AWS account that owns the network interface.
public_ipv4_poolstringPublic IPv4 poolThe ID of an address pool.
tagslistTagsElements with key and value properties.

Error codes

Parse errors

Error messageCauseResolution
aws-profile-not-foundNo AWS connect profile matches the name given in the profile option.Check the name on Settings > Connect Profiles and specify it again.
no-permissionThe account running the query is not granted the connect profile.Ask an administrator to grant the connect profile.
invalid-aws-regionThe region option value is not an AWS region name.Enter an exact AWS region name such as ap-northeast-2.
use-one-aws-profileMore than one connect profile was given in the profile option.Specify a single connect profile.

Description

Retrieves a list of allocated AWS Elastic IP addresses.

The following AWS IAM permissions must be allowed to use this command.

  • ec2:DescribeAddresses

Without the profile and region options the command queries every client region of every connect profile the user may use, so narrowing the scope with profile and region is recommended in large environments. Each record carries the aws_profile and region fields that tell which profile and region it came from.

Examples

Example: List AWS Elastic IP Addresses

Situation: A periodic review or an incident investigation needs the result of list aws elastic ip addresses.

aws-ec2-addresses

Expected result:

aws_profileregioninstance_idpublic_ip
aws-prodap-northeast-2i-00123456789abcdef192.0.2.1

Interpretation: One record is one queried item. Use aws_profile and region to tell which account and region it came from, then narrow the columns with fields and either export the result or use it as the lookup stage of a detection rule.

Example: Narrowing to one account and region

Situation: Limit the scope when several connect profiles and regions exist.

aws-ec2-addresses profile=aws-prod region=ap-northeast-2
| limit 100

Interpretation: Narrowing the scope cuts both the number of AWS API calls and the response time. Scope every scheduled query this way.