Synopsis
Skip all filtering flags to report everything running in all clusters in a given AWS account. Use
--clusters and/or --clusters-regex OR --exclude and/or --exclude-regex to filter the clusters to snapshot.
You can also filter the services within a cluster using --services and/or --services-regex. Or use --exclude-services and/or --exclude-services-regex to exclude some services.
Note that service filtering is applied to all clusters being snapshot.
All filtering options are case-sensitive.
The reported data includes cluster and service names, container image digests and creation timestamps.
To authenticate to AWS, you can either:
- 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
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.
authentication to AWS using flags
authentication to AWS using flags
authentication to AWS using env variables
authentication to AWS using env variables
reporting everything running in all clusters in a given AWS account
reporting everything running in all clusters in a given AWS account
include clusters matching a name in the AWS account
include clusters matching a name in the AWS account
include clusters matching a pattern in the AWS account
include clusters matching a pattern in the AWS account
include clusters matching a list of names in the AWS account
include clusters matching a list of names in the AWS account
exclude clusters matching a name in the AWS account
exclude clusters matching a name in the AWS account
exclude clusters matching a pattern in the AWS account
exclude clusters matching a pattern in the AWS account
exclude clusters matching a list of names in the AWS account
exclude clusters matching a list of names in the AWS account
include Services matching a name in one cluster
include Services matching a name in one cluster
include Services matching a pattern in one cluster
include Services matching a pattern in one cluster
include production Services only (by naming convention) in all clusters in the AWS account
include production Services only (by naming convention) in all clusters in the AWS account
include Services matching a name in all clusters in the AWS account
include Services matching a name in all clusters in the AWS account
include Services matching a list of names in all clusters in the AWS account
include Services matching a list of names in all clusters in the AWS account
exclude Services matching a pattern in one cluster
exclude Services matching a pattern in one cluster
exclude Production services only (by naming convention) in all clusters in the AWS account
exclude Production services only (by naming convention) in all clusters in the AWS account
exclude Services matching a name in one cluster
exclude Services matching a name in one cluster
exclude Services matching a name in all clusters in the AWS account
exclude Services matching a name in all clusters in the AWS account
exclude Services matching a list of names in all clusters in the AWS account
exclude Services matching a list of names in all clusters in the AWS account