Skip to main content

Posts

Showing posts with the label iac

Pulumi

Pulumi is another IaC tool. Unlike Terraform, where you can only use HashiCorp Language, Pulumi allows you to use Javascript, Python, and more, I used Javascript.   Projects are, by the documentation's own definition, analogous to a github repo. A stack is a bit of code with a separate config.  Pulumi has a different kind of process to me, so these notes may be a little more scattered as I try to pull parallels for us all to understand. I do like how you can check the output of resources pushed to AWS; See the following code; ``pulumi stack output bucketName`` To me, bucketName acts as a variable with an assignment; In that stack (particular bit of code), it's assigned with the name my-bucket-[randomstring] . I can also see it with the View In Browser feature that comes with the Pulumi Visual Studio Code extension. I uploaded a local index.html file to my Pulumi-made bucket using YAML. I'm not sure if that can be done with Terraform, but this was very cool. If your VS Code ...