Skip to main content
Version: v0.14 🚧

kusion resource show

Show details of a resource of the current or specified stack

Synopsis

Show details of a resource of the current or specified stack.

This command displays detailed information about a resource of the current project in the current or a specified workspace

kusion resource show [flags]

Examples

  # Show details of a specific resource of the current project in the current workspace
kusion resource show --id=hashicorp:viettelcloud:viettelcloud_db_instance:example-mysql

# Show details of a specific resource with specified project and workspace
kusion resource show --id=hashicorp:viettelcloud:viettelcloud_db_instance:example-mysql --project=example --workspace=dev

# Show details of a specific resource with specified backend
kusion resource show --id=hashicorp:viettelcloud:viettelcloud_db_instance:example-mysql --backend=local

# Show details of a specific resource with specified output format
kusion resource show --id=hashicorp:viettelcloud:viettelcloud_db_instance:example-mysql --output=json

Options

      --backend string     The backend to use, supports 'local', 'oss' and 's3'
-h, --help help for show
--id string The resource ID
-o, --output string Specify the output format
--project string The project name
--workspace string The workspace name

Options inherited from parent commands

      --profile string          Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none")
--profile-output string Name of the file to write the profile to (default "profile.pprof")

SEE ALSO

Auto generated by spf13/cobra on 21-Jan-2025