Synopsis
- provide the AWS static credentials via flags or by exporting the equivalent KOSLI env vars (e.g. KOSLI_AWS_KEY_ID)
- export the AWS env vars (e.g. AWS_ACCESS_KEY_ID).
- Use a shared config/credentials file under the $HOME/.aws
--include / --exclude (literal prefix match) or --include-regex / --exclude-regex (Go regular expressions matched against the full object key).
In all cases, the content is reported as one artifact. If you wish to report separate files/dirs within the same bucket as separate artifacts, you need to run the command twice.
To specify paths in a directory artifact that should always be excluded from the SHA256 calculation, you can add a .kosli_ignore file to the root of the artifact.
Each line should specify a relative path or path glob to be ignored. You can include comments in this file, using #.
The .kosli_ignore will be treated as part of the artifact like any other file, unless it is explicitly ignored itself.
Flags
Flags inherited from parent commands
Examples Use Cases
These examples all assume that the flags--api-token, --org, --host, (and --flow, --trail when required), are set/provided.
report the contents of an entire AWS S3 bucket (AWS auth provided in env variables)
report the contents of an entire AWS S3 bucket (AWS auth provided in env variables)
report what is running in an AWS S3 bucket (AWS auth provided in flags)
report what is running in an AWS S3 bucket (AWS auth provided in flags)
report a subset of contents of an AWS S3 bucket (AWS auth provided in env variables)
report a subset of contents of an AWS S3 bucket (AWS auth provided in env variables)
report contents of an entire AWS S3 bucket, except for some paths (AWS auth provided in env variables)
report contents of an entire AWS S3 bucket, except for some paths (AWS auth provided in env variables)
report contents of an AWS S3 bucket, excluding all PNG files via a regex
report contents of an AWS S3 bucket, excluding all PNG files via a regex