fix(aws-cloudtrail): add cloudtrail command in event lookup mode (#5251)

enh(plugin): add cloudtrail in awscli custom command option
Community contribution #5086

Refs: CTOR-958
This commit is contained in:
Lucie Dubrunfaut 2024-10-29 08:52:36 +01:00 committed by GitHub
parent 9280037660
commit 9bac8e5d0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 4 deletions

View File

@ -981,7 +981,7 @@ sub cloudtrail_events_set_cmd {
return if (defined($self->{option_results}->{command_options}) && $self->{option_results}->{command_options} ne '');
my $cmd_options = "lookup-events --region $self->{option_results}->{region} --output json";
my $cmd_options = "cloudtrail lookup-events --region $self->{option_results}->{region} --output json";
if (defined($options{delta})) {
my $endtime = time();
my $starttime = $endtime - ($options{delta} * 60);
@ -1078,7 +1078,7 @@ Set AWS session token.
=item B<--aws-role-arn>
Set arn of the role to be assumed.
Set Amazon Resource Name of the role to be assumed.
=item B<--aws-profile>
@ -1102,7 +1102,7 @@ Set timeframe in seconds.
=item B<--statistic>
Set cloudwatch statistics (can be: 'minimum', 'maximum', 'average', 'sum').
Set CloudWatch statistics (can be: 'minimum', 'maximum', 'average', 'sum').
=item B<--zeroed>
@ -1139,7 +1139,7 @@ Proxy URL if any
Avoid certificate issuer verification. Useful when AWS resources are hosted by a third party.
Note that it strips all stderr from the command result. Debug will only display CLI instead of evreything.
Note that it strips all stderr from the command result. Debug will only display CLI instead of everything.
=back

View File

@ -18,12 +18,16 @@ api.meraki.com
--api-version
ASAM
Avigilon
aws
AWSCLI
--aws-role-arn
Backbox
--cacert-file
cardtemperature
Centreon
--cert-pkcs12
--cert-pwd
CloudWatch
connections-dhcp
connections-dns
cpu-utilization-1m
@ -156,6 +160,7 @@ powershell.exe
prct
Primera
proto
--proxyurl
psu
QoS
queue-messages-inflighted
@ -165,6 +170,7 @@ RRDCached
Sansymphony
--scope-datacenter
sfp.temperature
--skip-ssl-check
SNMP
space-usage-prct
--sql-errors-exit