Web: https://dev.to/carlovo/input-variables-file-for-multiple-terraform-workspaces-19f7

May 4, 2022, 1:59 p.m. | Carlo van Overbeek

DEV Community dev.to

We've all been there: you have written a Terraform configuration that is so awesome, you have to apply it multiple times... Or at least to dev, test and prod. However amazing you configuration might be, it's very rare to have all details exactly the same over every environment. You usually end up with something like this, and that's perfectly fine (for readability, I've condensed the code a bit, see this gist for a more complete example):



resource "aws_instance" "this" { …

aws devops terraform workspaces

Sr. Enterprise Software Development Lead

@ Ayata | Remote - Austin, Texas, United States

Strategic Partner Marketing Manager - Amazon Web Services

@ bChannels | Remote - United States

Senior Manager, Field Employee Engagement & Culture

@ Gopuff | Remote, United States

Salesforce Engineer

@ Twitch | Remote (United States)

TikTok Content Creator

@ Athletic Greens | Remote - San Diego, California, United States

Senior Character Concept Artist - External Development

@ Crytek | Frankfurt & Remote