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 initNot 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
ENTERto accept the default value ofdev.
- You will be asked for a stack name. Hit
-
Deploy the Stack
pulumi upThis 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
detailswill show you a rich diff of the changes to be made. Choosingyeswill create your custom resource. Choosingnowill return you to the user prompt without performing the update operation.
-
Destroy resources
pulumi destroyTo delete the Stack itself
pulumi stack rmNote that this removes the stack entirely from the Pulumi Service, along with all of its update history.