Skip to main content
⏳ Estimated read time: 3 min read

type

The stackgen resource type command allows you to list and filter the resource types supported by the StackGen platform. This helps you identify what resources are available for use in your infrastructure.

Usage

stackgen resource type [flags]

Flags

FlagDescription
-a, --appstack-id stringappStack ID
-c, --customCustom resource
-d, --deployment-type stringDeployment type (default "k8s")
-h, --helpHelp for type
-r, --pattern stringThe pattern of the resource
-p, --provider stringCloud provider (Default value is "aws"). Use this flag to specify the cloud provider whose resources you want to list. Refer to the Known Issues section to understand the limitations of the AzureAD provider.
-k, --resource-packResource pack

Examples

List supported resources for the azurerm provider:

stackgen resource type --provider azurerm

List all available resource types

stackgen resource type

This command will:

  • Display a complete list of all resource types supported by StackGen
  • Use the default provider (AWS) and deployment type (k8s)

Filter resources with multiple criteria

stackgen resource type --appstack-id <appstack-id> --deployment-type <deployment-type> --custom <true/false> --resource-pack <true/false> --provider <provider> --pattern <resource-type>

This command will:

  • Filter resources based on multiple criteria
  • Only show resources that match all specified filters

Filter resources by provider

stackgen resource type -p azure

This command will:

  • Display only Azure resources supported by StackGen
  • Override the default provider (AWS)

Filter resources by deployment type

stackgen resource type -d aws-lambda

This command will:

  • Display only resources compatible with AWS Lambda deployments
  • Override the default deployment type (k8s)

Search for specific resources by pattern

stackgen resource type -r database

This command will:

  • Display resources containing "database" in their name or description
  • Help quickly find specific types of resources

List custom resources only

stackgen resource type -c

This command will:

  • Only display custom resources that have been uploaded to the system
  • Filter out built-in resources

List resource packs

stackgen resource type -k

This command will:

  • Display available resource packs
  • Useful for identifying resource pack IDs for governance policies
note
  • The output includes the full resource type identifier used in StackGen
  • Resource types are grouped by provider for easier navigation
  • This command is useful when planning your infrastructure requirements
  • The default provider is "aws" and default deployment type is "k8s" if not specified