Pulumi dynamic resource provider for custom Infrastructure as Code (IaC).
-
Install Pulumi
brew install pulumi/tap/pulumi
-
Clone repo
git clone https://github.com/J4NN0/pulumi-dynamic-iac.git cd pulumi-dynamic-iac
-
Create a new Pulumi Stack
pulumi stack init
Not that if this is your first time running pulumi new or other pulumi commands, you may be prompted to log in to the Pulumi Service. After logging in, the CLI will proceed with walking you through creating a new stack:
- You will be asked for a stack name. Hit
ENTER
to accept the default value ofdev
.
- You will be asked for a stack name. Hit
-
Deploy the Stack
pulumi up
This command evaluates your program and determines the resource updates to make.
- First, a preview is shown that outlines the changes that will be made when you run the update.
- Once the preview has finished, you are given three options to choose from. Choosing
details
will show you a rich diff of the changes to be made. Choosingyes
will create your custom resource. Choosingno
will return you to the user prompt without performing the update operation.
-
Destroy resources
pulumi destroy
To delete the Stack itself
pulumi stack rm
Note that this removes the stack entirely from the Pulumi Service, along with all of its update history.