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
Apr 7, 2022

Automated Drift Detection

Mark Phillips
Product Marketer

What is it?

Infrastructure as code (IaC) has given us many advantages for provisioning and maintaining the infrastructure our application code runs on. Not least, it gives us confidence that the underlying platform is what we intend it to be. However, sometimes direct access to virtual machines and services results in a running environment that no longer looks like the code describing it. We call this drift.

How does it work?

We’ve had drift detection in env0 for some time, originally as an engineered solution that took more steps than we were totally happy with. So we’ve made a significant update and drift detection is now a much simpler process to enable. The docs page details all the steps, but let’s take a brief look at it here.

Schedule a drift detection job under the environment triggers section, using standard crontab syntax

Add notifications under the project settings:

The status of the job is also available to see in the Deployments tab of the Environment UI

How does it help me?

Whenever we talk to customers about their deployment processes, they’re usually trying to move away from the old workflow of maintaining servers. IaC is the foundation of the idea of ephemeral infrastructure elements, of services that are defined by repeatable code. But if the code doesn’t represent reality, it can be hard work trying to change processes for the better. Having a simple signifier that our infrastructure code doesn’t reflect reality is a great step towards aligning code and services.

If you’d like to chat about managing your infrastructure as code, and how to address drift, ‌drop us a line, or even message us on Twitter.

‍

Interested in learning more about env0?
Request a Demo
SHARE
You may also like
Day 0 Environment Creation
Share outputs between IaC stacks
Chris' Corner - March 2023
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