dcloud iam audit-destinations createExport to S3, a webhook or syslog over TLS, or alarm by email on matching events
Delivers events from now on (update with resumeFrom=start to replay what is stored). filterActions takes globs; empty means every action. A webhook signing secret is returned once.
Synopsis
dcloud iam audit-destinations create --kind kind --name name --config config [flags]Flags
--kindRequiredenum
Where entries go: an S3 bucket, an https webhook, a syslog receiver over TLS, or email (an alarm)
One of:
s3,webhook,syslog,email--nameRequiredstring
A name, unique in the organization
Constraints: 1-64 chars
--filter-actionsOptionalarray of string
Action patterns to send, e.g. iam:* or auth:SignIn; empty or omitted: every action
Constraints: max 100 chars
--filter-outcomeOptionalenum
Send only entries with this outcome: success (Succeeded), error (Failed) or failure (Denied); null or omitted: every outcome
One of:
success,error,failureMay be null.
--configRequiredmap of string
Settings for the kind. s3: {bucket, accessKeyId, region (default us-east-1), prefix, endpoint (default this platform’s object storage)}; webhook: {url} (https); syslog: {host, port (default 6514), caCertificate (PEM, for a private CA)}; email: {addresses}
Constraints: key=<json>
--secret-access-keyOptionalstring
The secret key that goes with config.accessKeyId; required for s3, stored encrypted and never returned
Constraints: 16-256 chars
Example
dcloud iam audit-destinations create --kind s3 --name example --config '{"key":"value"}'Generated from the API description, the same one the API checks requests against and the CLI is built from.