πŸ“’Sample Templates

Copy these samples into the CloudTruth Template editor

circle-info

The samples include the relevant CloudTruth CLI command to fetch the template and assume the CloudTruth API key has been exported to an environment variable.

JSON

#
# Iterates through all parameters in the project
#
{
{%- for param in cloudtruth.parameters %}
  "{{param[0]}}": "{{param[1]}}"{%unless forloop.last%},{%endunless%}
{%- endfor %}
}
#
#
# Sample CloudTruth CLI command to fetch this template:
# Remove below after copying
#
# Assumes CloudTruth API key is exported to ENV variable
# 
cloudtruth --project {{cloudtruth.project}} template get "{{cloudtruth.self}}"

YAML

ConfigMap

ShellENV

TFVars

Java Properties

Last updated

Was this helpful?