Why env0
Solutions
Infrastructure as Code (IaC) Automation Teams and GovernanceManaged Self-Service env0 for the Enterprise
DocumentationPricing
Resources
Case StudiesIn the NewsVideosWebinars
Blog
Login
Get a Demo
FREE TRIALContact us
May 3, 2022

Plan and Apply on PR

Kevin "KMac" Damaso
Technical Product Marketer

We're excited to introduce a new feature in env0: Plan and Apply from PR Comments (also known as the Atlantis-style workflow). With this release, you can natively enable your team to manage IaC deployments directly within your VCS.  This way, there’s no need to log in to another UI or platform. This enables collaboration and allows developers to run terraform plan and terraform apply directly from comments on a pull request/ merge request.

Why Plan and Apply on PR?


The DevOps teams we speak with often start out by manually running Terraform on local workstations. But this doesn't keep track or give leadership visibility of what's being deployed. Our solution addresses this by allowing you to run terraform commands from pull request comments.

With this new env0 workflow, everything becomes visible right in the PR. That includes the plan details, the changes, and cost estimation… all while creating an audit trail for compliance.

Design Philosophy

A successful terraform plan doesn't always equal a successful terraform apply. We want you to be able to catch and remediate breaks in the same PR, as opposed to having to open a new PR to fix the break (thus creating rework). So we run terraform apply on the PR branch.

A key difference with our implementation is that PR Plans do not lock the Terraform state, and can be run concurrently. The reason for this comes directly from customer feedback. In multiple discussions, it was clear that locking the directory or workspace until merge blocks other devs from working on the same project, and slows teams down without adding much value.

Finally, we also ensured that repeated PR comment command outputs will not cause overwhelming comment spamming in the PR itself. As output is generated, env0 will append new output to the existing output comment, rather than create an entirely new comment. It's a subtle shift from how Atlantis did it, and it's a change that you'll love once you see it in action—especially on busy PRs.

So if you're looking to keep track of the history of your IaC, create visibility, automation, and compliance, PR Comment Commands is an easy-to-use solution within your very own VCS, be that Github, GitLab, or Bitbucket.

‍

Interested in learning more about env0?
Request a Demo
SHARE
You may also like
Recommendations for Migrating from Terraform Cloud
Infrastructure as Code is a Creative Job
How to integrate Azure DevOps with env0
Go back to blog
CNCF Member Badge
Company
About UsIn the NewsPress ReleasesCase StudiesAdditional ResourcesCareers
Developer and DevOps
APITerraform ProviderTerratag Open Source
Terraform Cloud AlternativeDIY AlternativeAtlantis Alternative
FREE TRIAL
Follow Us
Terms of ServicePrivacy PolicySecuritySystem Status
© Copyright env0 2023
This website uses cookies. We use cookies to ensure that we give you the best experience on our website. Learn More
PreferencesDenyAccept
Privacy Preference Center
When you visit websites, they may store or retrieve data in your browser. This storage is often necessary for the basic functionality of the website. The storage may be used for marketing, analytics, and personalization of the site, such as storing your preferences. Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website.
Reject all cookiesAllow all cookies
Manage Consent Preferences by Category
Essential
Always Active
These items are required to enable basic website functionality.
Marketing
These items are used to deliver advertising that is more relevant to you and your interests. They may also be used to limit the number of times you see an advertisement and measure the effectiveness of advertising campaigns. Advertising networks usually place them with the website operator’s permission.
Personalization
These items allow the website to remember choices you make (such as your user name, language, or the region you are in) and provide enhanced, more personal features. For example, a website may provide you with local weather reports or traffic news by storing data about your current location.
Analytics
These items help the website operator understand how its website performs, how visitors interact with the site, and whether there may be technical issues. This storage type usually doesn’t collect information that identifies a visitor.
Confirm my preferences and close