If you're a Cloud Engineer working with several environments in different AWS accounts, you definitely should try Terraform Workspaces.

Terraform Workspaces is a reliable way to handle projects with more than one environment managed from a specific account to another.

The diagram below shows what I'm doing in this lab:

Let's say that you have an account for DevOps team. This account will be responsible for provisioning and managing other environments as well, like Staging and Production. In this case, we will provision a Kubernetes cluster in each account using AWS EKS.

First of all, pay attention to your backend…


It's good to mention that this feature doesn't work if you use pipeline jobs.

Mayara Gouveia

DevOps / Cloud Engineer 🇨🇦

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store