terraform
A terraform
asset is text specified directly in your Ship application’s spec.
Required Parameters
inline
- The contents of the file
Optional Parameters
dest
- A path to which the file should be written when generating assets. Defaults tomain.tf
mode
- Specifies file mode of the created asset, defaults to0644
when
- This asset will be included when ‘when’ is omitted or true
Examples
assets:
v1:
- terraform:
inline: >-
resource "random_id" "server" { byte_length = {{repl ConfigOption
"id_length" | ParseInt}}}
assets:
v1:
- terraform:
dest: terraform/random_id.tf
inline: >-
resource "random_id" "server" { byte_length = {{repl ConfigOption
"id_length" | ParseInt}}}