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
An ansible-rulebook event source module for getting events from an AWS CloudTrail.
This supports all the authentication methods supported by boto3 library: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html.
Parameters
Parameter |
Comments |
|---|---|
Optional AWS access key ID. |
|
The number of seconds to wait between polling. Default: |
|
Optional URL to connect to instead of the default AWS endpoints. |
|
The optional event category to return. (e.g. ‘insight’) |
|
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. |
|
Optional AWS region to use. |
|
Optional AWS secret access key. |
|
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