Identify the root cause of infrastructure drift in env zero, covering manual changes, provider version updates, and unapplied code for Terraform.
Feature CompatibilityThe feature is fully compatible starting from agent version 1.0.1044
The feature is supported only for Opentofu, Terragrunt, and Terraform.
Drift refers to the divergence between the actual state of infrastructure and the state defined in configuration files. This can occur when changes are made outside of the Infrastructure as Code (IaC) tool, such as manual updates through a cloud provider’s console or automated processes outside of the IaC pipeline.Drift is risky because it can lead to unexpected behavior, inconsistencies in resource management, and potentially compromise system reliability or security. If not detected and addressed, drift can cause deployments to fail, resulting in costly misconfigurations and possibly leaving systems vulnerable to exploitation. Regular drift analysis is crucial for maintaining infrastructure consistency and ensuring that all changes are tracked and aligned with the defined code.When resources are managed in env zero, env zero captures drift causes automatically. Whether a user has modified the state directly, a provider version change has introduced differences, or new code was pushed without being applied - env zero captures these events.
A resource was changed manually (by a user or API) in the cloud provider’s console. Unmanaged changes to infrastructure are risky and not recommended. env zero will check if a change was made to the resource outside of the IaC code. If a change is detected, it will appear here:
If you have Cloud Compass configured, a ‘More Details’ link will appear. Clicking it will show all the events that occurred within the resource between the last modifying deployment and the drift check deployment. In the events modal, you can view event details related to the changed resource - Event Date, Event Resource, Event Name, and the user who took the action.
Each event has a link that provides more information directly from the Cloud Provider.
Getting EventsCurrently, retrieving resource events is supported only for AWS and Azure.
In order to retrieve resource events, you must first set up Cloud Compass in your organization.
For more information, please refer to the documentation.
A provider’s version was changed, causing the drift. This can occur when the infrastructure code doesn’t use static provider versions. env zero will display which provider’s version changed, along with the old and new versions.
A remote module’s version was changed, causing the drift. This can happen when the infrastructure code doesn’t use static module versions. env zero will display which module’s version changed, along with the old and new versions.
One of the environment’s inputs in env zero changed, causing the drift. env zero will display who made the change, when it occurred, and the variable’s name, scope, old value, and new value. The old and new values will not be displayed for sensitive values.
A change was made to the infrastructure code but has not yet been applied. env zero will check if a commit was made to the infrastructure code after the last modifying deployment and show the commit (with a link to it in the VCS provider), along with who made it and when.
env zero uses globs to make this check more accurate. The default globs are:
where ${TEMPLATE_PATH} is the template’s path.
These default globs can be overwritten by using the DRIFT_CAUSE_UNAPPLIED_COMMITS_GLOBS environment variable on the environment in env zero. It is a semicolon-delimited list of globs. env zero will also ensure that the environment’s revision and the revision at the time of the drift check are the same.
The environment’s state was directly modified. env zero will detect a state change and try to find a corresponding remote apply and link to it. If no remote apply is found, a message indicating that the state has changed will appear.
When a remote apply was detected:
When no remote apply was detected but the state has changed:
If a drift has been detected in your environment, you will see a collapsible showing the number of issues found and a link to the drift deployment. Opening the collapsible will show a list of the different drift causes env zero checks for, as well as the check’s status. These results will appear on the right.
The ‘Drifts’ tab on a drifted deployment page shows a list of the different drift causes env zero checks for, as well as the check’s status. The drift cause check results will appear on the right.
Below it you will see the changed resources list and what changed. You will also be able to get the resource’s events by pressing the ‘Analyze Drift Cause’ button.
Reasons Drift Cause won’t be able to show events for resourceThere are several reasons why events will not be available:
A missing resource ID, which can happen for a number of reasons:
An old agent is being used
The drift reason is a resource being manually deleted
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"env zero docs","colors":{"primary":"#000000","light":"#D2F740"},"logo":{"light":"https://mintcdn.com/envzero-b61043c8/GWfARhdHeVhvtQPk/logo/logo-light-mode.svg?fit=max\u0026auto=format\u0026n=GWfARhdHeVhvtQPk\u0026q=85\u0026s=6349fff9147169f2120c89694f47cbc0","dark":"https://mintcdn.com/envzero-b61043c8/GWfARhdHeVhvtQPk/logo/logo-dark-mode.svg?fit=max\u0026auto=format\u0026n=GWfARhdHeVhvtQPk\u0026q=85\u0026s=3017a6fc552076ce1aa60a773f7cab5c"},"favicon":"https://mintcdn.com/envzero-b61043c8/tSDpnsOW7stD0Hxu/favicon.svg?fit=max\u0026auto=format\u0026n=tSDpnsOW7stD0Hxu\u0026q=85\u0026s=e7c3f9cd1d8663c44ed8c059f5c4e2cb","icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"envzero-b61043c8","hasAudioNarration":false,"actualSubdomain":"envzero-b61043c8","customDomains":["docs.envzero.com"],"gitSource":{"type":"github","owner":"env0","repo":"env-zero-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae8502f6bec035f3458f61b","collectionId":"9bc7ad1f-7116-4e1b-b7fd-7010435a0439","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae8502f6bec035f3458f61b"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae8502f6bec035f3458f61b","clientVersion":"0.0.4045","searchFilterCounts":[{"language":"default","tag":"API reference","count":374},{"language":"default","tag":"Guides","count":216},{"language":"default","tag":"Changelog","count":121},{"language":"default","tag":"Configuration","count":55},{"language":"default","tag":"ACCESS \u0026 IDENTITY","count":43},{"language":"default","tag":"Environments","count":40},{"language":"default","tag":"Cloud Compass","count":39},{"language":"default","tag":"2023","count":36},{"language":"default","tag":"ENVIRONMENTS \u0026 DEPLOYMENTS","count":32},{"language":"default","tag":"2024","count":28}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"docs-styles.css","content":".tryit-button{border-radius:0;background-color:light-dark(#d2f740,#0c0c0b);color:light-dark(#000,#fff)}.accordion-group,.card{border-radius:0;border-style:dashed}#footer{display:none}.link{color:light-dark(black,white)!important;border-bottom-color:light-dark(#addc06,#d2f740)}"}],"page":{"pagePath":"guides/admin-guide/environments/drift-detection/drift-cause","slug":"/guides/admin-guide/environments/drift-detection/drift-cause","pageMetadata":{"title":"Analyze drift cause","slug":"drift-cause","description":"Identify the root cause of infrastructure drift in env zero, covering manual changes, provider version updates, and unapplied code for Terraform.","keywords":["drift cause","drift analysis","root cause","unmanaged change","manual change","drift investigation","infrastructure drift","state divergence"],"href":"/guides/admin-guide/environments/drift-detection/drift-cause"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Identify the root cause of infrastructure drift in env zero, covering manual changes, provider version updates, and unapplied code for Terraform.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,br:`br`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,Info,Note,OptimizedImage,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(Note,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Feature Compatibility`})}),_jsx(_components.p,{children:`The feature is fully compatible starting from agent version 1.0.1044\nThe feature is supported only for Opentofu, Terragrunt, and Terraform.`})]}),`\n`,_jsx(_components.p,{children:`Drift refers to the divergence between the actual state of infrastructure and the state defined in configuration files. This can occur when changes are made outside of the Infrastructure as Code (IaC) tool, such as manual updates through a cloud provider’s console or automated processes outside of the IaC pipeline.`}),`\n`,_jsx(_components.p,{children:`Drift is risky because it can lead to unexpected behavior, inconsistencies in resource management, and potentially compromise system reliability or security. If not detected and addressed, drift can cause deployments to fail, resulting in costly misconfigurations and possibly leaving systems vulnerable to exploitation. Regular drift analysis is crucial for maintaining infrastructure consistency and ensuring that all changes are tracked and aligned with the defined code.`}),`\n`,_jsx(_components.p,{children:`When resources are managed in env zero, env zero captures drift causes automatically. Whether a user has modified the state directly, a provider version change has introduced differences, or new code was pushed without being applied - env zero captures these events.`}),`\n`,_jsx(Heading,{level:`2`,id:`drift-cause-analysis`,children:`Drift Cause Analysis`}),`\n`,_jsx(_components.p,{children:`Based on the IaC data, env zero will analyze the drift to determine whether it was caused by one or more of the following reasons:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(Heading,{level:`3`,id:`unmanaged-change`,children:`Unmanaged Change`}),`\n`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`A resource was changed manually (by a user or API) in the cloud provider’s console. Unmanaged changes to infrastructure are risky and not recommended. env zero will check if a change was made to the resource outside of the IaC code. If a change is detected, it will appear here:`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/dc87af165638c3f824e82187b39cb5977f3a3df819f4f7b58f160fab97940654-1.png?fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=f3210c9d5c978ed832e9ada14c35a100`,alt:`Interface screenshot showing configuration options`,\"data-og-width\":`512`,width:`512`,\"data-og-height\":`235`,height:`235`,\"data-path\":`images/guides/admin-guide/environments/drift-detection/dc87af165638c3f824e82187b39cb5977f3a3df819f4f7b58f160fab97940654-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/dc87af165638c3f824e82187b39cb5977f3a3df819f4f7b58f160fab97940654-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=16922816ad3b0c040f6497fe771dacce 280w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/dc87af165638c3f824e82187b39cb5977f3a3df819f4f7b58f160fab97940654-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=6eb25783b840c518db52dcf1159c9595 560w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/dc87af165638c3f824e82187b39cb5977f3a3df819f4f7b58f160fab97940654-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=850b5fe0a385982f4d78b6194024d41c 840w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/dc87af165638c3f824e82187b39cb5977f3a3df819f4f7b58f160fab97940654-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=6cc6601598c0d9144695f444650df00a 1100w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/dc87af165638c3f824e82187b39cb5977f3a3df819f4f7b58f160fab97940654-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=f61b4db86cbdb78b5539fb690f971b89 1650w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/dc87af165638c3f824e82187b39cb5977f3a3df819f4f7b58f160fab97940654-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=261b2d142f8ce5254476c7046651f6dd 2500w`})}),`\n`,_jsxs(_components.p,{children:[`If you have `,_jsx(_components.a,{href:`/guides/cloud-compass/cloud-compass`,children:`Cloud Compass`}),` configured, a ‘More Details’ link will appear. Clicking it will show all the events that occurred within the resource between the last modifying deployment and the drift check deployment. In the events modal, you can view event details related to the changed resource - Event Date, Event Resource, Event Name, and the user who took the action.`]}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/e04965fe524d3a0fade0295edb6aad45de4c4aabb339b774f8c83f8414cc33ab-1.png?fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=a8c9fff1f235255b523743a141260c89`,alt:`Interface screenshot showing configuration options`,\"data-og-width\":`512`,width:`512`,\"data-og-height\":`195`,height:`195`,\"data-path\":`images/guides/admin-guide/environments/drift-detection/e04965fe524d3a0fade0295edb6aad45de4c4aabb339b774f8c83f8414cc33ab-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/e04965fe524d3a0fade0295edb6aad45de4c4aabb339b774f8c83f8414cc33ab-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=f8762fa0984b07e4d33986b08223b2b0 280w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/e04965fe524d3a0fade0295edb6aad45de4c4aabb339b774f8c83f8414cc33ab-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=ebb36f11245d282a14890d27d414f76a 560w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/e04965fe524d3a0fade0295edb6aad45de4c4aabb339b774f8c83f8414cc33ab-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=699c4f81b3da049508ac693f4837576c 840w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/e04965fe524d3a0fade0295edb6aad45de4c4aabb339b774f8c83f8414cc33ab-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=1f7d43f737a2d13b9525a971dff33f23 1100w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/e04965fe524d3a0fade0295edb6aad45de4c4aabb339b774f8c83f8414cc33ab-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=d18a92c0095c195e4807bd1ec8b8573c 1650w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/e04965fe524d3a0fade0295edb6aad45de4c4aabb339b774f8c83f8414cc33ab-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=ff40493d659429ed2157c6ea2d1930bf 2500w`})}),`\n`,_jsx(_components.p,{children:`Each event has a link that provides more information directly from the Cloud Provider.`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/b217f3056e5b186daa5cfed6732207a83262d9ae90401226560cbfa40743f639-1.png?fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=d00f8214a642664d0714e4258427b4c9`,alt:`Interface screenshot showing configuration options`,\"data-og-width\":`512`,width:`512`,\"data-og-height\":`330`,height:`330`,\"data-path\":`images/guides/admin-guide/environments/drift-detection/b217f3056e5b186daa5cfed6732207a83262d9ae90401226560cbfa40743f639-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/b217f3056e5b186daa5cfed6732207a83262d9ae90401226560cbfa40743f639-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=66aa33a084561d865a5435b112268b83 280w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/b217f3056e5b186daa5cfed6732207a83262d9ae90401226560cbfa40743f639-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=a60a188d97614a2d2c2ed396a4b71121 560w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/b217f3056e5b186daa5cfed6732207a83262d9ae90401226560cbfa40743f639-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=0b8bc973a3e6ad72c88aea3a5b774af4 840w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/b217f3056e5b186daa5cfed6732207a83262d9ae90401226560cbfa40743f639-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=090890905e529be0a1fbf35c23897464 1100w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/b217f3056e5b186daa5cfed6732207a83262d9ae90401226560cbfa40743f639-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=a957b5fa63a888a847fa8368e79eae17 1650w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/b217f3056e5b186daa5cfed6732207a83262d9ae90401226560cbfa40743f639-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=c8d1bf24cfc380e0602758cc78060d30 2500w`})}),`\n`,_jsxs(Warning,{children:[_jsx(_components.p,{children:`Getting Events`}),_jsxs(_components.p,{children:[`Currently, retrieving resource events is supported only for AWS and Azure.`,_jsx(_components.br,{}),`\n`,`In order to retrieve resource events, you must first set up Cloud Compass in your organization.`,_jsx(_components.br,{}),`\n`,`For more information, please refer to the documentation.`]})]}),`\n`,_jsxs(_components.ol,{start:`2`,children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(Heading,{level:`3`,id:`provider-version-change`,children:`Provider Version Change`}),`\n`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`A provider’s version was changed, causing the drift. This can occur when the infrastructure code doesn’t use static provider versions. env zero will display which provider’s version changed, along with the old and new versions.`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/c38b85a2635d1ff7ce89d49bf5cfee10f10c3b0bbcfafcab0dad79b9e13627e1-2.png?fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=2959e54cc9794c2fe5c0d3eb2e79c3d4`,alt:`Interface screenshot showing configuration options`,\"data-og-width\":`512`,width:`512`,\"data-og-height\":`174`,height:`174`,\"data-path\":`images/guides/admin-guide/environments/drift-detection/c38b85a2635d1ff7ce89d49bf5cfee10f10c3b0bbcfafcab0dad79b9e13627e1-2.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/c38b85a2635d1ff7ce89d49bf5cfee10f10c3b0bbcfafcab0dad79b9e13627e1-2.png?w=280\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=dac036abe9a0f3690bd98239ca67f342 280w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/c38b85a2635d1ff7ce89d49bf5cfee10f10c3b0bbcfafcab0dad79b9e13627e1-2.png?w=560\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=b906a8c0cb4af894c3d343f5b145ec6a 560w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/c38b85a2635d1ff7ce89d49bf5cfee10f10c3b0bbcfafcab0dad79b9e13627e1-2.png?w=840\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=28d563911ae84ac3c05a5d6beb84bc47 840w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/c38b85a2635d1ff7ce89d49bf5cfee10f10c3b0bbcfafcab0dad79b9e13627e1-2.png?w=1100\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=5783fa024a1bc780fb2f40a8ab4037ee 1100w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/c38b85a2635d1ff7ce89d49bf5cfee10f10c3b0bbcfafcab0dad79b9e13627e1-2.png?w=1650\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=e0046b76ddcb55c74fef2dd604b603cb 1650w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/c38b85a2635d1ff7ce89d49bf5cfee10f10c3b0bbcfafcab0dad79b9e13627e1-2.png?w=2500\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=1392308d4e0f1db25d488435272586de 2500w`})}),`\n`,_jsxs(_components.ol,{start:`3`,children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(Heading,{level:`3`,id:`module-version-change`,children:`Module Version Change`}),`\n`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`A remote module’s version was changed, causing the drift. This can happen when the infrastructure code doesn’t use static module versions. env zero will display which module’s version changed, along with the old and new versions.`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/f98b44bc5e5d742c145f2cbd2812c909174157886c657a03263ce247862a5385-3.png?fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=600ebc07eb575fd81e210fa6191b505b`,alt:`Interface screenshot showing configuration options`,\"data-og-width\":`512`,width:`512`,\"data-og-height\":`174`,height:`174`,\"data-path\":`images/guides/admin-guide/environments/drift-detection/f98b44bc5e5d742c145f2cbd2812c909174157886c657a03263ce247862a5385-3.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/f98b44bc5e5d742c145f2cbd2812c909174157886c657a03263ce247862a5385-3.png?w=280\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=39fb2c7083941683993a7bfb949cb75a 280w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/f98b44bc5e5d742c145f2cbd2812c909174157886c657a03263ce247862a5385-3.png?w=560\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=40a03477ef93c2503a2353c7680269d1 560w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/f98b44bc5e5d742c145f2cbd2812c909174157886c657a03263ce247862a5385-3.png?w=840\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=e18a5ca6409e064901c71a8d8ca9ae5f 840w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/f98b44bc5e5d742c145f2cbd2812c909174157886c657a03263ce247862a5385-3.png?w=1100\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=6217c3cd3869754e0e71d2c12ecf3242 1100w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/f98b44bc5e5d742c145f2cbd2812c909174157886c657a03263ce247862a5385-3.png?w=1650\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=e5add1760b0fc220c37c11c120eb079c 1650w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/f98b44bc5e5d742c145f2cbd2812c909174157886c657a03263ce247862a5385-3.png?w=2500\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=9b75f13d99aa7ec9c9fe7af2bf010378 2500w`})}),`\n`,_jsxs(_components.ol,{start:`4`,children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(Heading,{level:`3`,id:`variable-change`,children:`Variable Change`}),`\n`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`One of the environment’s inputs in env zero changed, causing the drift. env zero will display who made the change, when it occurred, and the variable’s name, scope, old value, and new value. The old and new values will not be displayed for sensitive values.`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/1f29a759b846950c5b7c71019835b54269c14a795579ebfaf7138c016fae10f1-4.png?fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=9e3088df12f71af55f06094f149a1f95`,alt:`Interface screenshot showing configuration options`,\"data-og-width\":`512`,width:`512`,\"data-og-height\":`231`,height:`231`,\"data-path\":`images/guides/admin-guide/environments/drift-detection/1f29a759b846950c5b7c71019835b54269c14a795579ebfaf7138c016fae10f1-4.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/1f29a759b846950c5b7c71019835b54269c14a795579ebfaf7138c016fae10f1-4.png?w=280\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=29cd276f2c449d31c5ac900bd6b54a90 280w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/1f29a759b846950c5b7c71019835b54269c14a795579ebfaf7138c016fae10f1-4.png?w=560\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=59de8ff142d15224a9174accce2dfe6b 560w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/1f29a759b846950c5b7c71019835b54269c14a795579ebfaf7138c016fae10f1-4.png?w=840\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=af36e284094caa4f38c74480baec0b8d 840w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/1f29a759b846950c5b7c71019835b54269c14a795579ebfaf7138c016fae10f1-4.png?w=1100\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=31bd2a6ef8fb06090c37dc8ececbd248 1100w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/1f29a759b846950c5b7c71019835b54269c14a795579ebfaf7138c016fae10f1-4.png?w=1650\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=e6527a3592a0e64817e3321760fb100b 1650w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/1f29a759b846950c5b7c71019835b54269c14a795579ebfaf7138c016fae10f1-4.png?w=2500\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=b9a30a190f9adbc9fa8234d67af09a3f 2500w`})}),`\n`,_jsxs(_components.ol,{start:`5`,children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(Heading,{level:`3`,id:`unapplied-commit`,children:`Unapplied Commit`}),`\n`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`A change was made to the infrastructure code but has not yet been applied. env zero will check if a commit was made to the infrastructure code after the last modifying deployment and show the commit (with a link to it in the VCS provider), along with who made it and when.`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/31c8b2920028bd88ee5345b035bb86d341dd8c49dd9193d200e8f32dd2d8312e-5.png?fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=4dd4e1a4bbcfeecc66406eb5ba65b054`,alt:`Interface screenshot showing configuration options`,\"data-og-width\":`512`,width:`512`,\"data-og-height\":`189`,height:`189`,\"data-path\":`images/guides/admin-guide/environments/drift-detection/31c8b2920028bd88ee5345b035bb86d341dd8c49dd9193d200e8f32dd2d8312e-5.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/31c8b2920028bd88ee5345b035bb86d341dd8c49dd9193d200e8f32dd2d8312e-5.png?w=280\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=f7837566af5d4ed044746551dbee24e8 280w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/31c8b2920028bd88ee5345b035bb86d341dd8c49dd9193d200e8f32dd2d8312e-5.png?w=560\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=ada8535a10d74dbe729b3b6e734f9768 560w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/31c8b2920028bd88ee5345b035bb86d341dd8c49dd9193d200e8f32dd2d8312e-5.png?w=840\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=237700b3c21ffc3253a5e1da46f9d09c 840w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/31c8b2920028bd88ee5345b035bb86d341dd8c49dd9193d200e8f32dd2d8312e-5.png?w=1100\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=3f6671a26671ff5e1084fd9d092d16a3 1100w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/31c8b2920028bd88ee5345b035bb86d341dd8c49dd9193d200e8f32dd2d8312e-5.png?w=1650\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=f942c1de58afe2a5499163a13d4f3567 1650w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/31c8b2920028bd88ee5345b035bb86d341dd8c49dd9193d200e8f32dd2d8312e-5.png?w=2500\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=df7647dba426c824a87a91b71e193caa 2500w`})}),`\n`,_jsx(_components.p,{children:`env zero uses globs to make this check more accurate. The default globs are:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\"${TEMPLATEPATH}/**/\\\\*.tf;${TEMPLATE_PATH}/**/.tofu;${TEMPLATEPATH}/\\\\*\\\\*/.hcl;env0.yml;env0.yaml\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`where `,_jsx(_components.code,{children:\"${TEMPLATE_PATH}\"}),` is the template’s path.`,_jsx(_components.br,{}),`\n`,`These default globs can be overwritten by using the `,_jsx(_components.code,{children:`DRIFT_CAUSE_UNAPPLIED_COMMITS_GLOBS`}),` environment variable on the environment in env zero. It is a semicolon-delimited list of globs. env zero will also ensure that the environment’s revision and the revision at the time of the drift check are the same.`]}),`\n`,_jsxs(_components.ol,{start:`6`,children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(Heading,{level:`3`,id:`state-modified`,children:`State Modified`}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The environment’s state was directly modified. env zero will detect a state change and try to find a corresponding remote apply and link to it. If no remote apply is found, a message indicating that the state has changed will appear.`,_jsx(_components.br,{}),`\n`,`When a remote apply was detected:`]}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/6c67f293910029dc3090435d1281ce5fe893a27a2501eeb0ef03f360c4e2330b-6.png?fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=6676b84be5b854610568786823ca6e7a`,alt:`Interface screenshot showing configuration options`,\"data-og-width\":`512`,width:`512`,\"data-og-height\":`210`,height:`210`,\"data-path\":`images/guides/admin-guide/environments/drift-detection/6c67f293910029dc3090435d1281ce5fe893a27a2501eeb0ef03f360c4e2330b-6.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/6c67f293910029dc3090435d1281ce5fe893a27a2501eeb0ef03f360c4e2330b-6.png?w=280\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=19adbe221c96a83dce1edbad29236c9a 280w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/6c67f293910029dc3090435d1281ce5fe893a27a2501eeb0ef03f360c4e2330b-6.png?w=560\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=c4747952ce59dd94f5a8b94600296932 560w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/6c67f293910029dc3090435d1281ce5fe893a27a2501eeb0ef03f360c4e2330b-6.png?w=840\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=201d336cf21bc98afb7c17e5e7f25f24 840w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/6c67f293910029dc3090435d1281ce5fe893a27a2501eeb0ef03f360c4e2330b-6.png?w=1100\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=cbb0cba21bd27d1c150c94edb8b5fa63 1100w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/6c67f293910029dc3090435d1281ce5fe893a27a2501eeb0ef03f360c4e2330b-6.png?w=1650\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=7cdae9bfa7a61dc2d96e2e5ba854596c 1650w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/6c67f293910029dc3090435d1281ce5fe893a27a2501eeb0ef03f360c4e2330b-6.png?w=2500\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=cee20c422ad3584ac11d8a48d645be8b 2500w`})}),`\n`,_jsx(_components.p,{children:`When no remote apply was detected but the state has changed:`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/46d229f4d0b11b20233cb52f41ae5884588451cf6abf29fcd1de319fe03dae40-6.png?fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=ec3bf8df7955d5f9b76a28bcc0748072`,alt:`Interface screenshot showing configuration options`,\"data-og-width\":`512`,width:`512`,\"data-og-height\":`172`,height:`172`,\"data-path\":`images/guides/admin-guide/environments/drift-detection/46d229f4d0b11b20233cb52f41ae5884588451cf6abf29fcd1de319fe03dae40-6.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/46d229f4d0b11b20233cb52f41ae5884588451cf6abf29fcd1de319fe03dae40-6.png?w=280\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=812a6aeb3ff1303ec2ca8fac9daae19c 280w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/46d229f4d0b11b20233cb52f41ae5884588451cf6abf29fcd1de319fe03dae40-6.png?w=560\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=cd84e7e1da51009e97b00316c7191dac 560w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/46d229f4d0b11b20233cb52f41ae5884588451cf6abf29fcd1de319fe03dae40-6.png?w=840\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=a56bea955c4a0f72da57175cc4d7f6c5 840w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/46d229f4d0b11b20233cb52f41ae5884588451cf6abf29fcd1de319fe03dae40-6.png?w=1100\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=15e43b99af642d39002dd764c47b7ca7 1100w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/46d229f4d0b11b20233cb52f41ae5884588451cf6abf29fcd1de319fe03dae40-6.png?w=1650\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=444bdf283bc5000277e0d9b19b878b7c 1650w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/46d229f4d0b11b20233cb52f41ae5884588451cf6abf29fcd1de319fe03dae40-6.png?w=2500\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=e50b04613d6dcf15c538471573cdd0dc 2500w`})}),`\n`,_jsx(Heading,{level:`2`,id:`using-drift-cause`,children:`Using Drift Cause`}),`\n`,_jsx(_components.p,{children:`There are two ways to utilize Drift Cause:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(Heading,{level:`3`,id:`in-the-environment-page`,children:`In The Environment Page`}),`\n`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`If a drift has been detected in your environment, you will see a collapsible showing the number of issues found and a link to the drift deployment. Opening the collapsible will show a list of the different drift causes env zero checks for, as well as the check’s status. These results will appear on the right.`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/88471782e903d629a4ff17b06efb65c55c497083d6004cec4db4974a270cf773-7.png?fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=9ccbc7932dfd52d5e061fca94e06de46`,alt:`Interface screenshot showing configuration options`,\"data-og-width\":`512`,width:`512`,\"data-og-height\":`233`,height:`233`,\"data-path\":`images/guides/admin-guide/environments/drift-detection/88471782e903d629a4ff17b06efb65c55c497083d6004cec4db4974a270cf773-7.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/88471782e903d629a4ff17b06efb65c55c497083d6004cec4db4974a270cf773-7.png?w=280\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=61f67daa1fc25e00d16f89bc71b1b79f 280w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/88471782e903d629a4ff17b06efb65c55c497083d6004cec4db4974a270cf773-7.png?w=560\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=7302e68435c03f6f6b2dd6f296b752c4 560w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/88471782e903d629a4ff17b06efb65c55c497083d6004cec4db4974a270cf773-7.png?w=840\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=a71ec8027ddb7f0e581132ad61006c7f 840w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/88471782e903d629a4ff17b06efb65c55c497083d6004cec4db4974a270cf773-7.png?w=1100\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=b1670388b2619b3fef24a6deb134626e 1100w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/88471782e903d629a4ff17b06efb65c55c497083d6004cec4db4974a270cf773-7.png?w=1650\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=c079e8e4413a44b29a92f3bc0ba4f4a3 1650w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/88471782e903d629a4ff17b06efb65c55c497083d6004cec4db4974a270cf773-7.png?w=2500\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=164a0e470464ad4eb66d4ab06be0f62f 2500w`})}),`\n`,_jsxs(_components.ol,{start:`2`,children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(Heading,{level:`3`,id:`on-the-deployment-page`,children:`On The Deployment Page`}),`\n`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`The ‘Drifts’ tab on a drifted deployment page shows a list of the different drift causes env zero checks for, as well as the check’s status. The drift cause check results will appear on the right.`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/1abee4d5c9d8af0bbef61f25e456902c25293d59a84ed4614796e6f063b74766-8.png?fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=8f87435d7c2fd66fb17609ccb3b568cc`,alt:`Interface screenshot showing configuration options`,\"data-og-width\":`512`,width:`512`,\"data-og-height\":`245`,height:`245`,\"data-path\":`images/guides/admin-guide/environments/drift-detection/1abee4d5c9d8af0bbef61f25e456902c25293d59a84ed4614796e6f063b74766-8.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/1abee4d5c9d8af0bbef61f25e456902c25293d59a84ed4614796e6f063b74766-8.png?w=280\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=596085ecf7354d8f3d5013f3fce0c25e 280w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/1abee4d5c9d8af0bbef61f25e456902c25293d59a84ed4614796e6f063b74766-8.png?w=560\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=2d6600402c7c735262b447ac64709313 560w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/1abee4d5c9d8af0bbef61f25e456902c25293d59a84ed4614796e6f063b74766-8.png?w=840\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=588b37d4fde4cad04c8ad7f1eec74936 840w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/1abee4d5c9d8af0bbef61f25e456902c25293d59a84ed4614796e6f063b74766-8.png?w=1100\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=8fadbdd635a7e8a4cb22dc6cf5876554 1100w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/1abee4d5c9d8af0bbef61f25e456902c25293d59a84ed4614796e6f063b74766-8.png?w=1650\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=592f4c489c26efa5aeebf972322b68c1 1650w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/1abee4d5c9d8af0bbef61f25e456902c25293d59a84ed4614796e6f063b74766-8.png?w=2500\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=3b08449c973593a15e921701ca8e9801 2500w`})}),`\n`,_jsx(_components.p,{children:`Below it you will see the changed resources list and what changed. You will also be able to get the resource’s events by pressing the ‘Analyze Drift Cause’ button.`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/212b9c0b7abbe1a5e0c11b6a08817f775978682654184ac76b5fa0220b5cdea2-9.png?fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=bd1cd54f716816ee01eb1dcebaff7e59`,alt:`Interface screenshot showing configuration options`,\"data-og-width\":`512`,width:`512`,\"data-og-height\":`106`,height:`106`,\"data-path\":`images/guides/admin-guide/environments/drift-detection/212b9c0b7abbe1a5e0c11b6a08817f775978682654184ac76b5fa0220b5cdea2-9.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/212b9c0b7abbe1a5e0c11b6a08817f775978682654184ac76b5fa0220b5cdea2-9.png?w=280\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=97657a604ade6e0a9dbf6a46b2421893 280w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/212b9c0b7abbe1a5e0c11b6a08817f775978682654184ac76b5fa0220b5cdea2-9.png?w=560\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=a2d3d54d4705abc86af60c2d79001f13 560w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/212b9c0b7abbe1a5e0c11b6a08817f775978682654184ac76b5fa0220b5cdea2-9.png?w=840\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=6e11351ed9cb36518ba380957bc38ce9 840w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/212b9c0b7abbe1a5e0c11b6a08817f775978682654184ac76b5fa0220b5cdea2-9.png?w=1100\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=eccf4444dcf0b36a3bd477611a97644e 1100w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/212b9c0b7abbe1a5e0c11b6a08817f775978682654184ac76b5fa0220b5cdea2-9.png?w=1650\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=2f925084d5e25250f54655ee3022d996 1650w, https://mintcdn.com/envzero-b61043c8/RwbdEslsc74czQBG/images/guides/admin-guide/environments/drift-detection/212b9c0b7abbe1a5e0c11b6a08817f775978682654184ac76b5fa0220b5cdea2-9.png?w=2500\u0026fit=max\u0026auto=format\u0026n=RwbdEslsc74czQBG\u0026q=85\u0026s=a5229527316771fc9b492489915d92b6 2500w`})}),`\n`,_jsxs(Info,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Reasons Drift Cause won’t be able to show events for resource`})}),_jsx(_components.p,{children:`There are several reasons why events will not be available:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A missing resource ID, which can happen for a number of reasons:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`An old agent is being used`}),`\n`,_jsx(_components.li,{children:`The drift reason is a resource being manually deleted`}),`\n`]}),`\n`]}),`\n`,_jsx(_components.li,{children:`Unsupported provider, as detailed above`}),`\n`,_jsx(_components.li,{children:`A user is missing the View Drift Cause permission`}),`\n`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next steps`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/guides/admin-guide/environments/drift-detection/automatic-drift-remediation`,children:`Remediate Drift`}),` - Apply automatic or manual fixes for detected drift.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/guides/admin-guide/environments/drift-detection`,children:`Detect Drift`}),` - Configure drift detection schedules and notifications.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/guides/admin-guide/environments`,children:`Environment overview`}),` - Manage and monitor all your environments.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Analyze drift cause","slug":"drift-cause","description":"Identify the root cause of infrastructure drift in env zero, covering manual changes, provider version updates, and unapplied code for Terraform.","keywords":["drift cause","drift analysis","root cause","unmanaged change","manual change","drift investigation","infrastructure drift","state divergence"],"href":"/guides/admin-guide/environments/drift-detection/drift-cause"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Drift Cause Analysis","slug":"drift-cause-analysis","depth":2,"children":[{"title":"Unmanaged Change","slug":"unmanaged-change","depth":3,"children":[]},{"title":"Provider Version Change","slug":"provider-version-change","depth":3,"children":[]},{"title":"Module Version Change","slug":"module-version-change","depth":3,"children":[]},{"title":"Variable Change","slug":"variable-change","depth":3,"children":[]},{"title":"Unapplied Commit","slug":"unapplied-commit","depth":3,"children":[]},{"title":"State Modified","slug":"state-modified","depth":3,"children":[]}]},{"title":"Using Drift Cause","slug":"using-drift-cause","depth":2,"children":[{"title":"In The Environment Page","slug":"in-the-environment-page","depth":3,"children":[]},{"title":"On The Deployment Page","slug":"on-the-deployment-page","depth":3,"children":[]}]},{"title":"Next steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/envzero-b61043c8/acfe5f113d987bc4/analytics.js","/_mintlify/custom/envzero-b61043c8/21cddeb428c6b3ba/page-dates.js","/_mintlify/custom/envzero-b61043c8/05a202bfcfe4d650/schema.js"],"subdomain":"envzero-b61043c8","siteName":"env zero docs","title":"Analyze drift cause - env zero docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-16T08:36:17.550Z","originalFileLocation":"guides/admin-guide/environments/drift-detection/drift-cause.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Identify the root cause of infrastructure drift in env zero, covering manual changes, provider version updates, and unapplied code for Terraform.\">\u003cmeta data-mint-head name=\"application-name\" content=\"env zero docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/envzero-b61043c8/d__z1yG6n7HmXzQt/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/envzero-b61043c8/d__z1yG6n7HmXzQt/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/envzero-b61043c8/d__z1yG6n7HmXzQt/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/envzero-b61043c8/d__z1yG6n7HmXzQt/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/envzero-b61043c8/d__z1yG6n7HmXzQt/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/envzero-b61043c8/d__z1yG6n7HmXzQt/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/envzero-b61043c8/d__z1yG6n7HmXzQt/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/envzero-b61043c8/d__z1yG6n7HmXzQt/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/envzero-b61043c8/d__z1yG6n7HmXzQt/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Analyze drift cause - env zero docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Identify the root cause of infrastructure drift in env zero, covering manual changes, provider version updates, and unapplied code for Terraform.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"env zero docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.envzero.com/guides/admin-guide/environments/drift-detection/drift-cause\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://envzero-b61043c8.mintlify.app/_mintlify/api/og/v2?division=Drift+detection+%26+remediation\u0026amp;title=Analyze+drift+cause\u0026amp;description=Identify+the+root+cause+of+infrastructure+drift+in+env+zero%2C+covering+manual+changes%2C+provider+version+updates%2C+and+unapplied+code+for+Terraform.\u0026amp;theme=79a6a91646e677889902be77\u0026amp;signature=83d63a5b9e40d77040014e989d85b6de4064c3d86d5f0427e1fb79e6057b4786\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Analyze drift cause - env zero docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Identify the root cause of infrastructure drift in env zero, covering manual changes, provider version updates, and unapplied code for Terraform.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://envzero-b61043c8.mintlify.app/_mintlify/api/og/v2?division=Drift+detection+%26+remediation\u0026amp;title=Analyze+drift+cause\u0026amp;description=Identify+the+root+cause+of+infrastructure+drift+in+env+zero%2C+covering+manual+changes%2C+provider+version+updates%2C+and+unapplied+code+for+Terraform.\u0026amp;theme=79a6a91646e677889902be77\u0026amp;signature=83d63a5b9e40d77040014e989d85b6de4064c3d86d5f0427e1fb79e6057b4786\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/envzero-b61043c8/d__z1yG6n7HmXzQt/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"env zero docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.envzero.com/guides/admin-guide/environments/drift-detection/drift-cause\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/admin-guide/environments/drift-detection/drift-cause.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.envzero.com/#organization\",\"name\":\"env zero docs\",\"url\":\"https://docs.envzero.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/envzero-b61043c8/GWfARhdHeVhvtQPk/logo/logo-light-mode.svg?fit=max\u0026auto=format\u0026n=GWfARhdHeVhvtQPk\u0026q=85\u0026s=6349fff9147169f2120c89694f47cbc0\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.envzero.com#website\",\"name\":\"env zero docs\",\"url\":\"https://docs.envzero.com\",\"publisher\":{\"@id\":\"https://docs.envzero.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.envzero.com/guides/admin-guide/environments/drift-detection/drift-cause#webpage\",\"url\":\"https://docs.envzero.com/guides/admin-guide/environments/drift-detection/drift-cause\",\"name\":\"Analyze drift cause\",\"description\":\"Identify the root cause of infrastructure drift in env zero, covering manual changes, provider version updates, and unapplied code for Terraform.\",\"dateModified\":\"2026-08-16T08:36:17.550Z\",\"isPartOf\":{\"@id\":\"https://docs.envzero.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.envzero.com/guides/admin-guide/environments/drift-detection/drift-cause#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.envzero.com/guides/admin-guide/environments/drift-detection/drift-cause#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"ENVIRONMENTS \u0026 DEPLOYMENTS\",\"item\":\"https://docs.envzero.com/guides/admin-guide/environments\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Drift detection \u0026 remediation\",\"item\":\"https://docs.envzero.com/guides/admin-guide/environments/drift-detection\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Analyze drift cause\",\"item\":\"https://docs.envzero.com/guides/admin-guide/environments/drift-detection/drift-cause\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.envzero.com/guides/admin-guide/environments/drift-detection/drift-cause#article\",\"headline\":\"Analyze drift cause\",\"name\":\"Analyze drift cause\",\"description\":\"Identify the root cause of infrastructure drift in env zero, covering manual changes, provider version updates, and unapplied code for Terraform.\",\"url\":\"https://docs.envzero.com/guides/admin-guide/environments/drift-detection/drift-cause\",\"mainEntityOfPage\":{\"@id\":\"https://docs.envzero.com/guides/admin-guide/environments/drift-detection/drift-cause#webpage\"},\"dateModified\":\"2026-08-16T08:36:17.550Z\",\"keywords\":\"drift cause, drift analysis, root cause, unmanaged change, manual change, drift investigation, infrastructure drift, state divergence\",\"publisher\":{\"@id\":\"https://docs.envzero.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.envzero.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"env zero docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"env zero docs","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"group":"GET STARTED","pages":[{"title":"Overview: What is env zero?","href":""},{"title":"Product homepage","href":"/guides/admin-guide/homepage"},{"group":"Quick start","pages":[{"title":"Getting Started with env zero","sidebarTitle":"Overview","href":"/guides/getting-started/getting-started"},{"title":"Create your organization","href":"/guides/getting-started/create-your-organization"},{"title":"Connect your Git repository","sidebarTitle":"Connect your Git repository (optional)","href":"/guides/getting-started/connect-your-vcs"},{"title":"Connect your cloud account","href":"/guides/getting-started/connect-your-cloud-account"},{"title":"Create your first template","href":"/guides/getting-started/create-your-first-template"},{"title":"Deploy your first environment","href":"/guides/getting-started/running-your-first-environment"}]},{"group":"Migrate from Terraform Cloud","pages":[{"title":"Migrate from Terraform Cloud","sidebarTitle":"Overview","href":"/guides/admin-guide/tfc-migration"},{"title":"Connect and scan","href":"/guides/admin-guide/tfc-migration/connect-and-scan"},{"title":"Resolve issues","href":"/guides/admin-guide/tfc-migration/resolve-issues"},{"title":"Review and migrate","href":"/guides/admin-guide/tfc-migration/review-and-migrate"},{"title":"Go live","href":"/guides/admin-guide/tfc-migration/go-live"},{"title":"Troubleshooting","sidebarTitle":"TFC migration troubleshooting","href":"/guides/admin-guide/tfc-migration/troubleshooting"}]},{"group":"Plan your setup","pages":[{"title":"Plan your setup","href":"/guides/getting-started/plan-your-setup"}]},{"group":"Reference","pages":[{"title":"Supported platforms","href":"/guides/getting-started/supported-platforms"},{"title":"Glossary","href":"/guides/getting-started/glossary"}]}]},{"group":"ENVIRONMENTS \u0026 DEPLOYMENTS","pages":[{"group":"Creating \u0026 managing environments","pages":[{"title":"Environment overview","href":"/guides/admin-guide/environments"},{"title":"Creating a new environment","href":"/guides/admin-guide/environments/setting-up-a-new-environment"},{"title":"Environment access","href":"/guides/admin-guide/environments/access"},{"title":"Managing bulk operations","href":"/guides/admin-guide/environments/bulk-operations"},{"title":"Environment Tags","href":"/guides/admin-guide/environments/tags"},{"title":"Using continuous deployment","href":"/guides/admin-guide/environments/continuous-deployment"},{"title":"Locking environments","href":"/guides/admin-guide/environments/environment-locking"},{"title":"Performing targeted deployments","href":"/guides/admin-guide/environments/targeted-deployments"},{"title":"Configure workflow triggers","href":"/guides/admin-guide/environments/workflow-triggers"},{"title":"Additional deployment controls","href":"/guides/admin-guide/additional-controls"},{"title":"AI-powered summarization and error insights","href":"/guides/admin-guide/environments/ai-powered-summarization-and-error-insights"},{"title":"Moving environments","href":"/guides/admin-guide/environments/move-environment"},{"title":"Plan and apply via PR comments","href":"/guides/admin-guide/environments/plan-and-apply-from-pr-comments"},{"title":"Running plan on pull requests","href":"/guides/admin-guide/environments/plan-on-pull-request"}]},{"group":"Workflows","pages":[{"title":"Workflow overview","href":"/guides/admin-guide/workflows"},{"title":"Creating a new workflow","href":"/guides/admin-guide/workflows/create-a-new-workflow"},{"title":"Partial workflow deployment","href":"/guides/admin-guide/workflows/workflow-partial-deployment"},{"title":"Workflow file reference","href":"/guides/admin-guide/workflows/workflow-file-reference"},{"title":"Workflow file JSON schema","href":"/guides/admin-guide/workflows/workflow-file-json-schema"},{"title":"Terraform provider settings for sub-environments","sidebarTitle":"Terraform provider settings","href":"/guides/admin-guide/workflows/terraform-provider-sub-environment-settings"}]},{"group":"Scheduling \u0026 automation","pages":[{"title":"Deployment scheduling","href":"/guides/admin-guide/environments/scheduling"},{"title":"Running ad hoc tasks","href":"/guides/admin-guide/environments/ad-hoc-tasks"}]},{"group":"Environment discovery","pages":[{"title":"Environment discovery overview","href":"/guides/admin-guide/environment-discovery"},{"title":"Discovery by file","href":"/guides/admin-guide/environment-discovery/discovery-by-file"},{"title":"Auto-create environments from pull requests","sidebarTitle":"Auto-creating environments from pull requests","href":"/guides/admin-guide/environment-discovery/automatic-environment-creation-from-pull-request"},{"title":"Import external environments into env zero","sidebarTitle":"Importing external environments into env zero","href":"/guides/admin-guide/environment-discovery/onboarding-import-external-environments-into-env-zero"}]},{"group":"Drift detection \u0026 remediation","pages":[{"title":"Drift Detection","description":"Set up automated drift detection in env zero to identify when cloud resources diverge from IaC definitions, with cron scheduling and notification options.","href":"/guides/admin-guide/environments/drift-detection"},{"title":"Analyze drift cause","href":"/guides/admin-guide/environments/drift-detection/drift-cause"},{"title":"Remediate Drift","description":"Automatically or manually remediate infrastructure drift in env zero by deploying code from VCS or creating pull requests for manual cloud changes.","href":"/guides/admin-guide/environments/drift-detection/automatic-drift-remediation"},{"title":"Drift Actions","href":"/guides/admin-guide/environments/drift-detection/drift-actions"},{"title":"Drift detection policy","href":"/guides/policies-governance/drift-detection-policy"}]},{"group":"Promotion strategies","pages":[{"title":"Environment promotion strategies","href":"/guides/admin-guide/environments/promotion-strategies"}]}]},{"group":"TEMPLATES \u0026 IaC TOOLS","pages":[{"group":"Managing templates","pages":[{"title":"Template overview","href":"/guides/admin-guide/templates"},{"title":"Managing IaC binary versions","href":"/guides/admin-guide/templates/iac-binaries-versions"},{"title":"Using self-hosted VCS","href":"/guides/admin-guide/templates/self-hosted-vcs"}]},{"group":"Version control integration","pages":[{"title":"Git and VCS integration","href":"/guides/admin-guide/manage-vcs"},{"group":"GitHub integration","pages":[{"title":"Standard GitHub integration","href":"/guides/admin-guide/templates/github-templates"},{"title":"GitHub Enterprise integration","href":"/guides/admin-guide/templates/github-enterprise-integration"}]},{"group":"GitLab integration","pages":[{"title":"Standard GitLab integration","href":"/guides/admin-guide/templates/gitlab-integration"},{"title":"GitLab Enterprise integration","href":"/guides/admin-guide/templates/gitlab-enterprise-integration"}]},{"group":"Bitbucket integration","pages":[{"title":"Standard Bitbucket integration","href":"/guides/admin-guide/templates/bitbucket-integration"},{"title":"Bitbucket Server integration","href":"/guides/admin-guide/templates/bitbucket-server-integration"}]},{"title":"Azure DevOps integration","href":"/guides/admin-guide/templates/azure-devops-integration"}]},{"group":"IaC ecosystem","pages":[{"title":"OpenTofu","href":"/guides/admin-guide/templates/opentofu"},{"title":"Terraform","href":"/guides/admin-guide/templates/terraform"},{"title":"Pulumi integration","href":"/guides/admin-guide/templates/pulumi"},{"title":"AWS CloudFormation integration","href":"/guides/admin-guide/templates/cloudformation"},{"title":"Kubernetes (K8s) integration","href":"/guides/admin-guide/templates/k8s"},{"title":"Helm integration","href":"/guides/admin-guide/templates/helm"},{"title":"Ansible integration","href":"/guides/admin-guide/templates/ansible"},{"title":"Terragrunt integration","href":"/guides/admin-guide/templates/terragrunt"}]},{"group":"Open source projects","pages":[{"title":"OpenTofu project","href":"/guides/community-and-resources/community-and-open-source/opentofu"},{"title":"Terratag project","href":"/guides/community-and-resources/community-and-open-source/terratag"}]},{"group":"Repository structure","pages":[{"title":"Repository structure","href":"/guides/admin-guide/templates/repository-structure"}]},{"group":"Module \u0026 provider registries","pages":[{"title":"Private registry","href":"/guides/admin-guide/private-registry"},{"group":"Modules registry","pages":[{"title":"Module overview","href":"/guides/admin-guide/private-registry/modules"},{"title":"Using modules","href":"/guides/admin-guide/private-registry/modules/module-usage"},{"title":"Testing modules in CI","href":"/guides/admin-guide/private-registry/modules/modules-continuous-integration-testing"}]},{"title":"Providers overview","href":"/guides/admin-guide/private-registry/providers"}]}]},{"group":"PLATFORM CONFIGURATION","pages":[{"group":"Variables \u0026 secrets","pages":[{"title":"Managing variables","href":"/guides/admin-guide/variables"},{"title":"Manage access tokens","href":"/guides/admin-guide/variables/access-tokens"},{"title":"Handling common errors","href":"/guides/admin-guide/variables/common-errors"},{"title":"Working with environment outputs","href":"/guides/admin-guide/variables/environment-outputs"},{"title":"Managing SSH keys","href":"/guides/admin-guide/variables/ssh-keys"},{"title":"Using variable sets","href":"/guides/admin-guide/variables/variable-sets"},{"title":"Managing workflow variables","href":"/guides/admin-guide/variables/workflow-variables"}]},{"group":"Custom flows","pages":[{"title":"Custom flows overview","href":"/guides/admin-guide/custom-flows"},{"title":"Project-level custom flow","href":"/guides/admin-guide/custom-flows/project-level-custom-flow"},{"title":"Custom flow schema (v2)","href":"/guides/admin-guide/custom-flows/version-2-schema"}]},{"group":"State management","pages":[{"title":"Remote backend","href":"/guides/admin-guide/remote-backend"},{"title":"Using self-hosted remote state","href":"/guides/admin-guide/remote-backend/self-hosted-remote-state"},{"title":"Authenticate locally","href":"/guides/admin-guide/remote-backend/login"},{"title":"Running remote plan","href":"/guides/admin-guide/remote-backend/remote-plan"},{"title":"Running remote apply","href":"/guides/admin-guide/remote-backend/remote-apply"},{"title":"Integrate with Terraform Cloud Remote Backend","sidebarTitle":"Integrating with Terraform Cloud Remote Backend","href":"/guides/admin-guide/remote-backend/working-with-terraform-cloud-remote-backend"},{"group":"State migration \u0026 backend configuration","pages":[{"title":"Migrating State","href":"/guides/admin-guide/remote-backend/state-migration"},{"title":"Configuring state access control","href":"/guides/admin-guide/remote-backend/state-access-control"},{"title":"Remote state data source","href":"/guides/admin-guide/remote-backend/remote-state-data-source"}]}]},{"group":"Plugins","pages":[{"title":"Plugins overview","href":"/guides/integrations/plugins"},{"title":"Using the Checkov plugin","href":"/guides/integrations/plugins/checkov-plugin"},{"title":"Using the import variable plugin","href":"/guides/integrations/plugins/import-variable-plugin"},{"title":"Using the OPA plugin","href":"/guides/integrations/plugins/opa-plugin"},{"title":"Terragrunt module detection","href":"/guides/integrations/plugins/terragrunt-modules-detection"},{"title":"Using the TFLint plugin","href":"/guides/integrations/plugins/tflint-plugin"},{"title":"Using the TFsec plugin","href":"/guides/integrations/plugins/tfsec-plugin"},{"title":"Using the Trivy plugin","href":"/guides/integrations/plugins/trivy-plugin"}]}]},{"group":"SELF-HOSTED AGENTS","pages":[{"group":"Getting started","pages":[{"title":"Self-hosted agents overview","href":"/guides/admin-guide/self-hosted-kubernetes-agent/overview"},{"title":"Self-hosted Kubernetes agent","href":"/guides/admin-guide/self-hosted-kubernetes-agent/self-hosted-kubernetes-agent"},{"title":"Install the agent with Terraform","href":"/guides/admin-guide/self-hosted-kubernetes-agent/terraform-bootstrap"},{"title":"Running a standalone Docker agent","href":"/guides/admin-guide/self-hosted-kubernetes-agent/standalone-docker-agent"}]},{"group":"Deployment image","pages":[{"title":"Configuring deployment image","href":"/guides/admin-guide/self-hosted-kubernetes-agent/deployment-image"},{"title":"Extending deployment image","href":"/guides/admin-guide/self-hosted-kubernetes-agent/extending-deployment-image"},{"title":"Changing user ID","href":"/guides/admin-guide/self-hosted-kubernetes-agent/using-a-custom-image-in-an-agent/change-user-id"},{"title":"Run Docker in custom flows","href":"/guides/admin-guide/self-hosted-kubernetes-agent/docker-in-custom-flows"}]},{"group":"Authentication","pages":[{"title":"Authenticating the agent on AWS EKS","href":"/guides/admin-guide/self-hosted-kubernetes-agent/authenticating-the-agent-on-aws-eks"},{"title":"Authenticating the agent on Azure AKS","href":"/guides/admin-guide/self-hosted-kubernetes-agent/authenticating-the-agent-on-azure-aks"}]},{"group":"Configuration","pages":[{"title":"Custom/optional configuration","href":"/guides/admin-guide/self-hosted-kubernetes-agent/custom-optional-configuration"},{"title":"Using cache with PVC","href":"/guides/admin-guide/self-hosted-kubernetes-agent/cache-with-pvc"},{"title":"Using custom CA certificates","href":"/guides/admin-guide/self-hosted-kubernetes-agent/custom-ca-certificates"},{"title":"Hosting deployment logs","href":"/guides/admin-guide/self-hosted-kubernetes-agent/hosting-the-deployment-logs"},{"title":"env zero Hosted Encrypted State","href":"/guides/admin-guide/self-hosted-kubernetes-agent/env-zero-hosted-encrypted-state"}]},{"group":"High availability \u0026 scaling","pages":[{"title":"HA/DR strategy for self-hosted agents","href":"/guides/admin-guide/self-hosted-kubernetes-agent/hadr-strategy-for-self-hosted-agents"},{"title":"Running multiple self-hosted agents","href":"/guides/admin-guide/self-hosted-kubernetes-agent/multiple-self-hosted-agents"},{"title":"Autoscaling self-hosted agents on Azure Container Apps","sidebarTitle":"Autoscaling on Azure Container Apps","href":"/guides/admin-guide/self-hosted-kubernetes-agent/autoscaling-on-azure-container-apps"},{"title":"Monitoring Self-Hosted Agents","href":"/guides/admin-guide/self-hosted-kubernetes-agent/self-hosted-agents-monitoring"}]},{"title":"Troubleshooting","sidebarTitle":"Self-hosted agent troubleshooting","href":"/guides/admin-guide/self-hosted-kubernetes-agent/troubleshooting"}]},{"group":"CLOUD MANAGEMENT","pages":[{"group":"Cloud resource management","pages":[{"title":"Cloud Compass","href":"/guides/cloud-compass/cloud-compass"},{"title":"Configure an AWS cloud account","href":"/guides/cloud-compass/cloud-compass/configure-cloud-accounts"},{"title":"Configure an Azure cloud account","href":"/guides/cloud-compass/cloud-compass/configure-an-azure-cloud-account"},{"title":"Configure a GCP cloud account","href":"/guides/cloud-compass/cloud-compass/configure-a-gcp-cloud-account"},{"title":"Link environments to Cloud Compass","sidebarTitle":"Linking environments to Cloud Compass resources","href":"/guides/cloud-compass/cloud-compass/linking-environments-to-cloud-compass-resources"}]},{"group":"Cloud insights","pages":[{"title":"Cloud Analyst","href":"/guides/cloud-analyst/cloud-analyst"},{"title":"AI chat interface","href":"/guides/cloud-analyst/cloud-analyst/ai-chat-interface"},{"title":"Dashboards","href":"/guides/cloud-analyst/cloud-analyst/dashboards"},{"title":"Explorer","href":"/guides/cloud-analyst/cloud-analyst/explorer"},{"title":"Insights","href":"/guides/cloud-analyst/cloud-analyst/insights"},{"title":"env zero model","href":"/guides/cloud-analyst/cloud-analyst/env-zero-model"}]},{"title":"env zero Context Layer","sidebarTitle":"Context Layer (CloudQuery)","href":"/guides/integrations/context-layer"}]},{"group":"GOVERNANCE \u0026 POLICIES","pages":[{"group":"Policies \u0026 safeguards","pages":[{"title":"Manage policies","href":"/guides/policies-governance/policies"},{"title":"Ready-to-use policies","href":"/guides/policies-governance/ready-to-use-policies"},{"title":"Enable env zero secrets","href":"/guides/policies-governance/allow-env0-secrets"},{"title":"Force remote backend","href":"/guides/policies-governance/force-remote-backend"}]},{"group":"Approval \u0026 deployment controls","pages":[{"title":"Manage approval policies","href":"/guides/policies-governance/approval-policies"},{"title":"Pin deployments to an approved revision","sidebarTitle":"Pin deployments to a revision","href":"/guides/policies-governance/pin-deployments-to-an-approved-revision"},{"title":"Enable destroy protection","href":"/guides/policies-governance/destroy-protection"},{"title":"Default auto-approve","href":"/guides/policies-governance/default-auto-approve"},{"title":"Deployment controls","href":"/guides/policies-governance/deployment-controls"}]},{"group":"Environment quotas \u0026 TTL settings","pages":[{"title":"Set environment limits","href":"/guides/policies-governance/environment-limits"},{"title":"Configure policy TTL","href":"/guides/policies-governance/policy-ttl"}]},{"group":"Cost management","pages":[{"title":"Estimate costs","href":"/guides/policies-governance/cost-estimation"},{"title":"Set budget notifications","href":"/guides/cost-monitoring/budget-notifications"},{"title":"Set cost monitoring","href":"/guides/cost-monitoring/cost-monitoring"},{"group":"Cloud provider cost setup","pages":[{"title":"Configure AWS costs","href":"/guides/cost-monitoring/aws-costs"},{"title":"Configure Azure costs","href":"/guides/cost-monitoring/setup-azure-costs"},{"title":"Configure GCP costs","href":"/guides/cost-monitoring/gcp-costs"}]}]},{"group":"Code Optimizer","pages":[{"title":"Code Optimizer overview","href":"/guides/policies-governance/code-optimizer/overview"},{"title":"Setup \u0026 prerequisites","href":"/guides/policies-governance/code-optimizer/setup"},{"title":"Scanning your code","href":"/guides/policies-governance/code-optimizer/scanning"},{"title":"Generating \u0026 applying fixes","href":"/guides/policies-governance/code-optimizer/fixes"}]}]},{"group":"ACCESS \u0026 IDENTITY","pages":[{"group":"User, role \u0026 team management","pages":[{"title":"Manage users","href":"/guides/admin-guide/user-role-and-team-management/user-management"},{"title":"Manage teams","href":"/guides/admin-guide/user-role-and-team-management/teams"},{"title":"Role-based access control (RBAC)","href":"/guides/admin-guide/user-role-and-team-management/rbac"},{"title":"Default roles","href":"/guides/admin-guide/user-role-and-team-management/default-roles"},{"title":"Custom roles","href":"/guides/admin-guide/user-role-and-team-management/custom-roles"},{"title":"Assigning roles","href":"/guides/admin-guide/user-role-and-team-management/role-assignment"},{"title":"User API keys","sidebarTitle":"Admin API Keys","href":"/guides/admin-guide/user-role-and-team-management/api-keys"}]},{"group":"Organization \u0026 project settings","pages":[{"title":"Manage organizations","href":"/guides/admin-guide/organizations"},{"title":"Manage projects","href":"/guides/admin-guide/projects"},{"title":"Manage sub-projects","href":"/guides/admin-guide/projects/sub-projects"}]},{"group":"SSO \u0026 identity","pages":[{"title":"Self-service SSO integration","href":"/guides/sso-integrations/self-service-sso"},{"title":"Self-service SAML setup","href":"/guides/sso-integrations/self-service-saml"},{"title":"Sync roles \u0026 groups from your IdP","href":"/guides/sso-integrations/importing-roles-or-groups-from-your-identity-provider"},{"group":"SCIM provisioning","pages":[{"title":"SCIM provisioning","href":"/guides/sso-integrations/scim-provisioning"},{"title":"SCIM provisioning with Okta","href":"/guides/sso-integrations/scim-provisioning-okta"},{"title":"SCIM provisioning with Entra ID","href":"/guides/sso-integrations/scim-provisioning-entra-id"}]},{"group":"Identity provider guides","pages":[{"title":"Azure Active Directory integration","href":"/guides/sso-integrations/self-service-azure-ad"},{"title":"AWS Single Sign-On integration","href":"/guides/sso-integrations/aws-single-sign-on"},{"title":"Google Workspace integration","href":"/guides/sso-integrations/google-workspace"},{"title":"JumpCloud integration","href":"/guides/sso-integrations/jumpcloud"},{"title":"Keycloak integration","href":"/guides/sso-integrations/keycloak"},{"title":"Okta integration","href":"/guides/sso-integrations/okta-integration"},{"title":"OneLogin integration","href":"/guides/sso-integrations/onelogin"},{"title":"VMware Workspace ONE integration","href":"/guides/sso-integrations/vmware-workspace-one"}]}]},{"group":"OIDC integrations","pages":[{"title":"General OIDC integrations","href":"/guides/integrations/oidc-integrations"},{"title":"Retrieve OIDC subject identifier","href":"/guides/integrations/oidc-integrations/oidc-retrieving-your-subject-identifier"},{"title":"OIDC for AWS","href":"/guides/integrations/oidc-integrations/oidc-with-aws"},{"title":"OIDC for Azure","href":"/guides/integrations/oidc-integrations/oidc-with-azure"},{"title":"OIDC for GCP","href":"/guides/integrations/oidc-integrations/oidc-with-google-cloud-platform"},{"title":"OIDC for Vault","href":"/guides/integrations/oidc-integrations/oidc-with-vault"}]},{"group":"Auditing \u0026 transparency","pages":[{"title":"Monitoring dashboards","href":"/guides/admin-guide/dashboards"},{"group":"Forwarding logs","pages":[{"title":"Logs forwarding overview","href":"/guides/integrations/logs-forwarding"},{"title":"Amazon CloudWatch","href":"/guides/integrations/logs-forwarding/cloudwatch"},{"title":"Amazon S3 logs","href":"/guides/integrations/logs-forwarding/s3"},{"title":"Coralogix logs","href":"/guides/integrations/logs-forwarding/coralogix"},{"title":"Datadog logs","href":"/guides/integrations/logs-forwarding/datadog"},{"title":"Dynatrace logs","href":"/guides/integrations/logs-forwarding/dynatrace"},{"title":"Google Cloud Logging","href":"/guides/integrations/logs-forwarding/gcp-logging"},{"title":"Grafana Loki logs","href":"/guides/integrations/logs-forwarding/grafana-loki"},{"title":"Logz.io logs","href":"/guides/integrations/logs-forwarding/logzio"},{"title":"New Relic logs","href":"/guides/integrations/logs-forwarding/new-relic"},{"title":"Splunk logs","href":"/guides/integrations/logs-forwarding/splunk"},{"title":"Sumo Logic logs","href":"/guides/integrations/logs-forwarding/sumologic"}]}]}]},{"group":"SECURITY \u0026 COMPLIANCE","pages":[{"title":"Security overview","href":"/guides/overview/security-overview"},{"title":"IP allowlisting","href":"/guides/overview/security-overview/ip-allowlisting"},{"title":"View audit logs","href":"/guides/admin-guide/audit-logs"},{"title":"IP addresses","href":"/guides/overview/security-overview/ip-addresses"}]},{"group":"INTEGRATIONS \u0026 DEVELOPER TOOLS","pages":[{"group":"Notifications","pages":[{"title":"Manage notifications","href":"/guides/integrations/notifications"},{"title":"Microsoft Teams integration","href":"/guides/integrations/notifications/microsoft-teams"},{"title":"Webhook notifications","href":"/guides/integrations/notifications/webhooks"}]},{"group":"Internal developer platforms","pages":[{"title":"Backstage integration","href":"/guides/integrations/internal-developer-platforms/backstage"}]},{"group":"CLI \u0026 API access","pages":[{"title":"env zero CLI Tool","sidebarTitle":"CLI","href":"/guides/community-and-resources/support-and-help/env-zero-cli"},{"title":"env zero CLI command reference","sidebarTitle":"Command reference","href":"/guides/community-and-resources/support-and-help/env-zero-cli/command-reference"},{"title":"Deploy workflows with the env zero CLI","sidebarTitle":"Deploy workflows","href":"/guides/community-and-resources/support-and-help/env-zero-cli/workflows"},{"title":"Troubleshoot the env zero CLI","sidebarTitle":"Troubleshooting","href":"/guides/community-and-resources/support-and-help/env-zero-cli/troubleshooting"},{"title":"env zero API access","sidebarTitle":"API access","href":"/guides/community-and-resources/support-and-help/api-access"}]}]},{"group":"BILLING \u0026 SUPPORT","pages":[{"title":"Purchase options","href":"/guides/billing/purchase-options"},{"title":"Subscription tiers","href":"/guides/billing/subscription-tiers"},{"title":"Managing your subscription","href":"/guides/billing/managing-your-subscription"},{"title":"Support","href":"/guides/community-and-resources/support-and-help/support"}]}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/users/list-users-vcs-id-mappings"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelogs"}]},{"tab":"Terraform Provider","icon":"external-link","href":"https://registry.terraform.io/providers/env0/env0/latest"},{"tab":"Status Page","icon":"external-link","href":"https://status.env0.com"},{"tab":"Schedule a Demo","icon":"external-link","href":"https://www.envzero.com/demo-request"},{"tab":"Start Free","icon":"external-link","href":"https://app.env0.com/"}]},"basePath":"","title":"Analyze drift cause - env zero docs","buildId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","deploymentId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-DW6UFrUy.js","DynamicMarkdown-B62XqCSI.js","zoom-image-lightbox-eHyQ0tlO.js","lightbox-handle-r17bVUz3.js"]}