This week the team talks through and shows off the new powerful Environment Variable Directive coming in the next release and an improved VS Code extension that adds Klotho specific syntax highlighting.
Environment Variable Directive
This directive can be added to capabilities, and would lead Klotho to inject the configuration of those resources as environment variables that can be used freely within the user application. For example, a
persist capability that sets up a
redis instance or a an
RDS instance can have the
environment_variable directive which would inject the host and port info into the execution unit that requested it. Now a developer can get the connection info to set up their own
RDS clients without Klotho knowing more about their set up.