logoStacktape docs


Prints logs from the specified resource to the console.

stacktape print-logs --region <<region>> --stage <<stage>>

Arguments API reference

Command options API reference
region (--r)
Type: string ENUM

AWS region for given command.

stage (--s)
Type: string

Stage to deploy your stack to. Example stages are production, staging, etc.

configPath (--cp)
Type: string

Path (relative to cwd) to your stacktape configuration file. By default, it's stacktape.yml.

currentWorkingDirectory (--cwd)
Type: string

Current working directory. All file paths in your config will be resolved relatively to specified cwd. Default: directory containing configuration file.

filter (--f)
Type: string

Prints only the logs that match this pattern

logFormat (--lf)
Type: string ENUM

Format of logs that are being printed to your console. You can learn more at Default: 'fancy'

logLevel (--ll)
Type: string ENUM

Level of logs that are being printed to the console. You can use 'debug' for more information about what's being done, or 'error' to show only errors. Default: 'info'

profile (--p)
Type: string

AWS profile to use.

raw (--rw)
Type: boolean

Prints logs in raw JSON format.

resource (--res)
Type: string

Name of the resource as specified in stacktape config. To specify a container inside a container workload, use {resource-name}:${container-name} syntax.

startTime (--st)
Type: string

Start time from which the logs are printed. Can be anything acceptable by javascript Date constructor: