From 838366bd12d3969e5ad8d32f4bbce934298c744e Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Fri, 29 Mar 2024 00:39:13 +0100 Subject: [PATCH] chore(pulumi): hint to the plan option --- knowledge base/pulumi.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/knowledge base/pulumi.md b/knowledge base/pulumi.md index 81d9f94..eb0afde 100644 --- a/knowledge base/pulumi.md +++ b/knowledge base/pulumi.md @@ -203,6 +203,15 @@ docker run … -it \ -e 'AWS_ACCESS_KEY_ID' -e 'AWS_SECRET_ACCESS_KEY' -e 'AWS_REGION' \ 'pulumi/pulumi-nodejs:3.111.1-debian' \ bash -c "npm ci && pulumi login 's3://bucket/prefix' && pulumi pre --parallel $(nproc)" + + +# Plans +# *Experimental* feature at the time of writing. +# Has issues with apply operations? +pulumi pre … --save-plan 'plan.json' +pulumi up --yes --non-interactive --stack 'stackname' \ + --skip-preview --plan 'plan.json' \ + --logtostderr --logflow --verbose 9 1> pulumi-up.txt 2> pulumi-error.txt || exit_code=$? ``` @@ -821,6 +830,8 @@ Solution: Read [secrets] and fix the configuration by providing a correct key id - [Automatically Enforcing AWS Resource Tagging Policies] - [Get started with Pulumi policy as code] - [IaC Recommended Practices: Developer Stacks and Git Branches] +- [Update plans] +- [Pulumi up --plan without error message (exit code 255)]