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
Flag | Description |
---|---|
-a, --appstack-id string | appStack ID |
-c, --custom | Custom resource |
-d, --deployment-type string | Deployment type (default "k8s") |
-h, --help | Help for type |
-r, --pattern string | The pattern of the resource |
-p, --provider string | Cloud 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-pack | Resource 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