Thomas Hartenstein

Implementing Feature Environments with AWS and Terraform

Are your developers blocked by a single shared environment? Learn how to create automated, isolated feature environments on AWS with Terraform workspaces.

Implementing Feature Environments with AWS and Terraform
#1about 3 minutes

Understanding the concept of feature environments

Feature environments create short-lived, automated copies of your infrastructure for each feature branch, preventing developers from blocking each other.

#2about 2 minutes

Weighing the pros and cons of feature environments

While feature environments prevent development bottlenecks and allow safe testing, they introduce extra costs, setup effort, and require team discipline.

#3about 2 minutes

How Terraform manages infrastructure as code

Terraform is a tool that translates declarative configuration files into API calls to provision and manage infrastructure across various cloud providers.

#4about 13 minutes

Implementing feature environments with Terraform workspaces

Terraform workspaces allow you to manage multiple, independent state files from a single configuration, enabling the creation of isolated environments.

#5about 4 minutes

Creating unique AWS resources using workspace variables

By appending the `terraform.workspace` variable to resource names, you can provision unique AWS resources like S3 buckets for each feature environment.

#6about 3 minutes

Managing AWS naming rules with Terraform functions

Use Terraform's built-in functions like `lower`, `substring`, and `replace` to sanitize feature branch names to comply with strict AWS resource naming restrictions.

#7about 14 minutes

Automating environment creation with a CI/CD pipeline

A CI/CD pipeline can be configured to automatically trigger on new feature branches, create a corresponding Terraform workspace, and apply the infrastructure.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

Related Articles

View all articles
AG
Andre Braun, GitLab
Now is the time for industrialized software development
Now is the time for industrialized software development Recently, I received a letter from my car’s manufacturer alerting me to a recall. They had discovered a defective part and wanted to replace it. It was easily fixed, and I might have forgotten a...
Now is the time for industrialized software development
CH
Chris Heilmann
WeAreDevelopers LIVE days are changing - get ready to take part
Starting with this week's Web Dev Day edition of WeAreDevelopers LIVE Days, we changed the the way we run these online conferences. The main differences are:Shorter talks (half an hour tops)More interaction in Q&AA tips and tricks "Did you know" sect...
WeAreDevelopers LIVE days are changing - get ready to take part
CH
Chris Heilmann
With AIs wide open - WeAreDevelopers at All Things Open 2025
Last week our VP of Developer Relations, Chris Heilmann, flew to Raleigh, North Carolina to present at All Things Open . An excellent event he had spoken at a few times in the past and this being the “Lucky 13” edition, he didn’t hesitate to come and...
With AIs wide open - WeAreDevelopers at All Things Open 2025
DC
Daniel Cranney
Dev Digest 194: AI vs. Version Control, Password Louvre & Cursed Webdev
Inside last week’s Dev Digest 194 . 🧠 Learn how to become an AI-native software engineer 🤷‍♂️ How can you stand out when anyone can build anything? 👂 Whisper Leak allows listening to encrypted chats 🐝 What’s new the OWASP2025 Top Ten List 🙅‍♀️ Curse...
Dev Digest 194: AI vs. Version Control, Password Louvre & Cursed Webdev

From learning to earning

Jobs that call for the skills explored in this talk.