Skip to main content



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.


idstring(Required) Specify the map id to use when generating a cloud resource.
secretboolean(Optional) Set to true to enable storing config as a secret (default = false)


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