Skip to content

Commit aa69c7f

Browse files
Condense documentation to 2 paragraphs and revert yarn.lock changes
Co-authored-by: meagancojocar <50200557+meagancojocar@users.noreply.github.com>
1 parent 6066ed0 commit aa69c7f

File tree

2 files changed

+187
-239
lines changed

2 files changed

+187
-239
lines changed

content/docs/pulumi-cloud/deployments/drift.md

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -12,50 +12,10 @@ menu:
1212
identifier: pulumi-cloud-deployments-drift
1313
---
1414

15-
Drift detection is the process of identifying changes in the actual state of your cloud environment that deviate from the expected state stored in Pulumi Cloud. This deviation can occur for various reasons, including manual adjustments made directly in the cloud provider’s console, unintended consequences of scripts, or unauthorized changes.
1615

17-
To use drift detection and remediation with Pulumi Deployments, you must first configure the deployment settings for your stack.
16+
Drift detection is the process of identifying changes in the actual state of your cloud environment that deviate from the expected state stored in Pulumi Cloud. This deviation can occur for various reasons, including manual adjustments made directly in the cloud provider's console, unintended consequences of scripts, or unauthorized changes.
1817

19-
You can also run a remediate drift operation, which will run a `pulumi up --refresh` to treat the Pulumi program as the source of truth and override what is in the cloud. See [Understanding Drift Remediation](#understanding-drift-remediation) for detailed information about what happens during remediation.
20-
21-
## Understanding Drift Remediation
22-
23-
Drift remediation automatically corrects infrastructure drift by restoring cloud resources to match your Pulumi program. Remediation treats Infrastructure as Code as the authoritative source of truth and overwrites out-of-band changes.
24-
25-
When remediation runs, Pulumi executes `pulumi up --refresh` to:
26-
27-
1. Refresh the state to get current cloud resources
28-
2. Compare actual state with desired state in your program
29-
3. Generate and apply changes to align infrastructure with your code
30-
31-
**Use remediation when:**
32-
33-
- You want to maintain IaC as the source of truth
34-
- Changes were made accidentally or without authorization
35-
- Security or compliance requires automatic correction
36-
37-
**Consider alternatives when:**
38-
39-
- Changes were intentional and reflect new requirements
40-
- Working with critical production systems requiring manual review
41-
- Large-scale drift needs careful analysis before correction
42-
43-
**Remediation vs. Refresh:**
44-
45-
- **Remediation** (`pulumi up --refresh`): Updates cloud resources to match your program
46-
- **Refresh** (`pulumi refresh`): Updates Pulumi state to match current cloud resources
47-
48-
## When Drift is Detected
49-
50-
When Pulumi detects drift, you have three response options:
51-
52-
1. **Remediate drift**: Restore infrastructure to match your Pulumi program. Treats Infrastructure as Code as authoritative and overwrites cloud changes. See [Understanding Drift Remediation](#understanding-drift-remediation) for details.
53-
54-
2. **Refresh**: Accept cloud changes and update Pulumi state to reflect current reality. You may also want to update your Pulumi program to align with the accepted changes.
55-
56-
3. **Manual review**: Manually review detected drift before taking action, especially for production environments or complex changes.
57-
58-
Use the Actions menu in Pulumi Cloud or appropriate CLI commands to perform these actions.
18+
To use drift detection and remediation with Pulumi Deployments, you must first configure the deployment settings for your stack. You can run a remediate drift operation, which executes `pulumi up --refresh` to treat the Pulumi program as the source of truth and restore cloud resources to match your Infrastructure as Code. When drift is detected, you can choose to remediate (restore to IaC state), refresh (accept cloud changes), or manually review before taking action.
5919

6020
## Running Drift Detection from the CLI
6121

@@ -90,7 +50,7 @@ In order to set up Drift Detection and Remediation in the Pulumi Cloud console,
9050
![Schedule](../schedule.png)
9151

9252
3. Select "Drift"
93-
4. (Optional) Turn on auto-remediation if applicable. See [Understanding Drift Remediation](#understanding-drift-remediation) for details about what happens when remediation runs.
53+
4. (Optional) Turn on auto-remediation if applicable
9454
5. Set the schedule using a cron expression
9555
6. Save the Schedule
9656
<!-- markdownlint-enable ol-prefix -->

0 commit comments

Comments
 (0)