3

Learning Pulumi with Python. Not a fan of Py, but I know my way around.

There's a dev cluster. My colleague asked me to modify Pulumi scripts for cost optimization, as the project transitioned to maintenance mode and is no longer needed on daily basis. Since I'm learning, he asked me laughing not to delete/change the static IP and not to delete the cluster.

I'm currently recreating the cluster anew for the third time :)

Gotta say, destroying a cluster is only scary the first time.

Comments
  • 2
    fastest way to learn is to screw up lol

    Kinda makes one wonder about these companies boasting new hires can make deployments on the first day huh
  • 1
    Maybe you already know it, but you can prevent respurces from accidental deletion directly in the constructor, using the options parameter
  • 0
    @dmonkey I don't know it yet. Got a ref.?
  • 1
    @netikras check this out

    https://pulumi.com/docs/concepts/...

    I'm referring to the param "protect", but you'll enjoy at least the "depends_on" as well
Add Comment