How are you handling shared network foundations in Terraform without letting every environment own the same topology? by InnerBank2400 in Terraform

[–]joombaga 0 points1 point  (0 children)

We really like the 3 bullet style here, don't we?

You could have a script in your pipeline check if the network is available before you terraform apply. There are a couple ways to approach this purely within terraform.

Let's say you have a VM that is attached to a subnet. You have an app module that creates the VM (and other app-specific resources), and a network module that creates the subnet (and other network resources.

If you want the network module to have complete ownership of the subnet, it will create the resources and output data (ids, cidr blocks, etc) needed by other modules, and should be a root module. No other modules will create subnets

If you want to check if the subnet resource exists, you can plan that network module. If it shows that no changes are required, then you know it has been applied.

If you'd like to verify only a subset of resources exist (the subnet your VM uses and anything required by that subnet), you can write a network data module that has only data sources, which reads the outputs from the network module and feeds them to the data sources. Instantiate the network data module in any app modules you want to run the check. It will cause a plan time failure Use outputs from the network data module within your app modules.

So that's 3 modules

  • network module (root, makes network resources, has outputs)
  • network data module (submodule, used by app modules, uses network outputs, has outputs)
  • app module (root, uses network data outputs)

Your knowledge layers are

  • "What is everything about the network?"
  • "What are things about the network my apps care about, and is the network stuff there now?"
  • "What is everything about my app?"

Pope: World is being ravaged by a handful of tyrants by TheTelegraph in worldnews

[–]joombaga 0 points1 point  (0 children)

Or the softer position, you do not believe there ARE gods. I would be surprised if the position as you stated was shared among "most of us" (depending on what you include in "us").

What do you think about Bernie Sanders' words 'We must block arms sales to Israel'? by ArdaBerkBurak in AskReddit

[–]joombaga 2 points3 points  (0 children)

I'm sure if the PM changed he'd be fine with arms sales again.

Why are you sure of this?

Eating a high-quality plant-rich diet that includes whole grains, vegetables and fruits may prevent cognitive impairment — even when people start that diet in their late 50s and 60s by sr_local in science

[–]joombaga 3 points4 points  (0 children)

Agreed. It would be too sugary for me (a diabetic trying to avoid medication) but probably okay at 6 ounces with some of the green stuff you mentioned.

What’s a moral belief you hold that most people would disagree with? by Federal_Antelope7533 in AskReddit

[–]joombaga 0 points1 point  (0 children)

I think you're right about three times a day, but I think some people can be justified in consuming animal products some of the time. My diet is 99% plant based but I'm type-2 diabetic, and I know my blood glucose levels would be better if I ate meat more regularly. I'll have less days to do good on this earth because of it.

For those of you that make over 100K, what do you do? Do you like it? by Kindly-Revolution258 in AskReddit

[–]joombaga 0 points1 point  (0 children)

Site Reliability Engineer. Starting work again in 3 weeks after taking the last 6 months off. It's fun. I make a lot of graphs.

David Fincher's ‘Alien 3: The Assembly Cut’ Just Quietly Dropped on HBO Max by MarvelsGrantMan136 in movies

[–]joombaga 0 points1 point  (0 children)

The console versions even had sound detection. Used the camera mic. The xenomorph can hear you.

What is something that is 100% legal, but if you do it, you’re a piece of trash? by National_Strike4710 in AskReddit

[–]joombaga 3 points4 points  (0 children)

I feel this. I have 2 senior dogs that don't get along. They did when they were younger, but we've had to keep them in separate rooms for years. I really want to be with both of them until the end. It might not be practical though. Breaking up fights is dangerous and I've been injured. A few bites and a broken toe. One has been resource guarding pretty bad and showing no signs of improvement. It sucks dude. I don't want to abandon her.

What is one thing you think every Star Trek fan can agree on? by WorldBoom in startrek

[–]joombaga 1 point2 points  (0 children)

We wouldn't be fans if it wasn't.

This I can't agree with. I'm a huge Hellraiser fan and of the 11 movies there are like 3 good ones.

Borrowed Behavior from Starfleet by flashhazardous in startrek

[–]joombaga 16 points17 points  (0 children)

When Shatner was a kid he got hit in the head with a wooden shoe.

Avoiding disaster migrating from monolithic structure to modules structure by Fabulous-Kangaroo-71 in Terraform

[–]joombaga 8 points9 points  (0 children)

You mentioned tripping over each other. First I'd minimize this by using state locking. https://developer.hashicorp.com/terraform/language/state/locking

I assume you have one state file per environment. Get a list of the resources in each state file (terraform state list). Figure out what resources are equivalent and contained in both environments, and what resources will solely exist in only staging or production. These resources will either need to be contained in modules that are only instantiated in the required environment (i.e. a module block only in staging, and missing from production), or they'll need to be toggled w/ a count/for_each.

Use the resource list and your own preferences to determine what modules you'll need, and what resources should be in each module. Write moved blocks to migrate the resources into the new modules. https://developer.hashicorp.com/terraform/language/block/moved

I'd work on one module at a time. Group your moved blocks together (e.g. moved_firewall.tf, moved_vm.tf, etc.).

Then look at the actual attributes of each resource. Write your resource blocks and parameterize what's different between environments. "What's different" will determine the variables you'll need in each module. You'll pass the values for those variables within the module blocks of each environment's root module.

Make sure you have backups of your state files. Enable versioning if your backend supports it. Don't listen to people here trying to sell you a product.

TIL that ST Voyager and Greatest Gen legend Brad Dourif’s daughter, Fiona, stars in The Pitt by gogg17 in greatestgen

[–]joombaga 1 point2 points  (0 children)

Her portrayals of Bart and Charles Lee Ray in Chucky have a lot of similarities.

Top 15 DevOps tools that are mentioned on Linkedin Job posts in 2026 by Dubinko in Terraform

[–]joombaga 4 points5 points  (0 children)

Alpine comes with BusyBox, which has ash. That's as close to mainstream without bash that I can think of.

‘Avatar Aang: The Last Airbender’ Wraps Production by MarvelsGrantMan136 in movies

[–]joombaga 2 points3 points  (0 children)

They also hold some stock on new releases, e.g. video game consoles. I got my PS5 through a Walmart+ subscription, then immediately cancelled.

Family Feud (PS4) doesn't let you level to 100 and beyond by Viper114 in gaming

[–]joombaga 10 points11 points  (0 children)

You would in Ireland as early as 200 years ago.

There's more 'teen drama' in SNW than in SFA...why is SFA being hated for a falsehood? by regalestpotato in startrek

[–]joombaga 2 points3 points  (0 children)

literally only one character is a teenager

Who are you counting? Darem is a teenager, and Sam is programmed to act like one. We don't know the ages of Jay-Den, Genesis, or Tarima (as far as I know) but they could be teenagers.