Module Configuration
kind: Module
type: pulumi
name: my-pulumi-module
# If the pulumi stack doesn't exist already when deploying, create it
createStack: true
# Cache deploys based on the Garden service version (see the section below)
# Setting `cacheStatus = true` works only with Pulumi service managed state backends.
cacheStatus: true
# These variables will be merged into the stack config before deploying or previewing
pulumiVariables:
my-variable: pineapple
# Variables defined in varfiles will also be merged into the stack config in declaration
# order (and take precedence over variables defined in this module's pulumiVariables).
pulumiVarfiles: [my-default-varfile.yaml, dev.yaml]kind: Project
name: pulumi
defaultEnvironment: dev
environments:
- name: dev
variables:
backendURL: s3://<bucket-name>
- name: prod
providers:
- name: pulumi
environments: [dev, prod]
backendURL: ${var.backendURL || null} # backendURL defaults to the pulumi managed state backend if null or empty string ""
---
kind: Module
type: pulumi
name: s3stack
stack: s3
orgName: '${environment.name == "prod" ? "s3stack-prod" : ""}' # orgName has to be null or an empty string "" for self-managed state backends
createStack: true
cacheStatus: '${environment.name == "prod" ? true : false}' # cacheStatus has to be set to false for self-managed state backends
description: Creates an s3 bucket
pulumiVariables:
environment: ${environment.name}Last updated
Was this helpful?

