amazon.aws.aws_cloudtrail event source – Receive events from an AWS CloudTrail

Note

This EDA event source plugin is part of the amazon.aws collection (version 12.1.0).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install amazon.aws.

To use it in a playbook, specify: amazon.aws.aws_cloudtrail.

Synopsis

Parameters

Parameter

Comments

access_key

string

Optional AWS access key ID.

delay_seconds

integer

The number of seconds to wait between polling.

Default: 10

endpoint_url

string

Optional URL to connect to instead of the default AWS endpoints.

event_category

string

The optional event category to return. (e.g. ‘insight’)

lookup_attributes

list / elements=string

The optional list of lookup attributes.

A lookup attribute is a dictionary containing an AttributeKey (string), which specifies the attribute used to filter returned events, and an AttributeValue (string), which defines the value for the specified AttributeKey.

region

string

Optional AWS region to use.

secret_key

string

Optional AWS secret access key.

session_token

string

Optional STS session token for use with temporary credentials.

Examples

- amazon.aws.aws_cloudtrail:
    region: us-east-1
    lookup_attributes:
      - AttributeKey: 'EventSource'
        AttributeValue: 'ec2.amazonaws.com'
      - AttributeKey: 'ReadOnly'
        AttributeValue: 'true'
    event_category: management