Pulumi.yaml: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 24: Line 24:
         secret: true
         secret: true
</font>
</font>
<font color=darkkhaki>
What does this mean:
<font size=-1>
name: ${PROJECT}
description: ${DESCRIPTION}
</font></font>


=Elements=
=Elements=

Revision as of 23:15, 19 January 2022

External

Internal

Overview

Pulumi.yaml contains the project definition. The name must begin with a capital "P", and both "yaml" and "yaml" extensions are valid.

Example

name: datadog-example
runtime:
  name: python
  options:
    virtualenv: venv
description: An experimental Datadog Pulumi project.
template:
  description: Minimal structure for a Datadog automation infrastructure project.
    config:
      datadog:apiKey:
        description:
        secret: true
      datadog:appKey:
        description:
        secret: true

What does this mean:

name: ${PROJECT}
description: ${DESCRIPTION}

Elements

name

Required attribute that specifies the project name.

runtime

description

template

This section of the configuration file is relevant when a new project is initialized with pulumi new. The initialization code processes the the configuration key listed under template.config and queries for values, interactively. Each configuration key can get a description which will be displayed during the configuration process, a default value and whether it is security sensitive or not, by setting secret to true.