Choose a remediation strategy¶
The remediation strategy is the way to tell Burrito how it should handle the remediation of drifts on your Terraform layers.
As for the runner spec override, you can specify a spec.remediationStrategy either on the TerraformRepository or the TerraformLayer.
The configuration of the TerraformLayer will take precedence.
spec.remediationStrategy API reference¶
| Field | Type | Default | Effect |
|---|---|---|---|
autoApply |
Boolean | false |
If true when a plan shows drift, it will run an apply. |
onError.maxRetries |
Integer | 5 or value defined in Burrito configuration |
How many times Burrito should retry a plan/apply when a runner fails. |
Warning
This operator is still experimental. Use spec.remediationStrategy.autoApply: true at your own risk.
Example¶
With this example configuration, Burrito will create apply runs for this layer, with a maximum of 3 retries.
apiVersion: config.terraform.padok.cloud/v1alpha1
kind: TerraformLayer
metadata:
name: random-pets-terragrunt
spec:
remediationStrategy:
autoApply: true
onError:
maxRetries: 3
# ... snipped ...