AWS EC2 Metadata

Requirements

Running this transform within Docker on EC2 requires 2 network hops. Users must raise this limit:

aws ec2 modify-instance-metadata-options --instance-id <ID> --http-endpoint enabled --http-put-response-hop-limit 2

Configuration Options

Required Options

inputs(required)

A list of upstream source or transform IDs. Wildcards (*) are supported.

See configuration for more info.

TypeSyntaxDefaultExample
arrayliteral["my-source-or-transform-id","prefix-*"]
type(required)

The component type. This is a required field for all components and tells Vector which component to use.

TypeSyntaxDefaultExample
stringliteral["aws_ec2_metadata"]

Advanced Options

endpoint(optional)

Override the default EC2 Metadata endpoint.

TypeSyntaxDefaultExample
stringliteralhttp://169.254.169.254
fields(optional)

A list of fields to include in each event.

TypeSyntaxDefaultExample
arrayliteralinstance-idlocal-hostnamelocal-ipv4public-hostnamepublic-ipv4ami-idavailability-zonevpc-idsubnet-idregion["instance-id","local-hostname"]
namespace(optional)

Prepend a namespace to each field's key.

TypeSyntaxDefaultExample
stringliteral["","ec2","aws.ec2"]
proxy(optional)

Configures an HTTP(S) proxy for Vector to use. By default, the globally configured proxy is used.

TypeSyntaxDefaultExample
hashliteral[]
refresh_interval_secs(optional)

The interval in seconds at which the EC2 Metadata api will be called.

TypeSyntaxDefaultExample
uint10

How it Works

State

This component is stateless, meaning its behavior is consistent across each input.