Config
@klotho::config
The config capability is specified on a resource to provide the ability to store application configuration in the cloud. this capability is intended to be used on static, read-only data.
The config annotation exposes directives to allow it to understand what type of data is intended to be stored. Based on these directives the config directive instructs klotho on how the backing store should be configured in the cloud.
Directives
Directive | Type | Description |
---|---|---|
id | string | (Required) Specify the map id to use when generating a cloud resource. |
secret | boolean | (Optional) Set to true to enable storing config as a secret (default = false) |
Configuration
Config
resources can be further configured within the Klotho configuration.
The configuration depends upon the provider which is specified in your klotho compilation. Example type configurations
Providers
- AWS
- GCP
caution
GCP hasn't been updated to v1 yet, so this is just a projection of what it may be.