Pulumi.yaml: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 8: Line 8:
=Example=
=Example=
<font size=-1>
<font size=-1>
  [[#name|name]]: simple-aws
  [[#name|name]]: datadog-example
  runtime:
  runtime:
   name: python
   name: python
   options:
   options:
     virtualenv: venv
     virtualenv: venv
  description: An experimental AWS Pulumi project.
  description: An experimental Datadog Pulumi project.
  <font color=darkkhaki>[[#template|template]]:
  <font color=darkkhaki>[[#template|template]]:
   description: Minimal structure for a Datadog automation infrastructure project using Hybrid Cloud Pulumi.
   description: Minimal structure for a Datadog automation infrastructure project.
     config:
     config:
       datadog:apiKey:
       datadog:apiKey:

Revision as of 00:32, 15 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

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.