Skip to content

Conversation

daniel-weisse
Copy link
Member

Context

Our daily cleanup jobs fail if they try to clean up resources on Azure that were already deleted through other means.
This is caused by us including a data source (azurerm_user_assigned_identity.uaid) which is only used to generate an output value.
Since Terraform evaluates the file and outputs before running a destroy operation, Terraform tries to evaluate the data source, fails, and then aborts the destroy operation.

Proposed change(s)

  • Remove the data source from the Terraform files before running terraform destroy
    • This data source is only required to generate an ouput value, it has no effect on our other resources, and can be safely ignored

Additional info

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
@daniel-weisse daniel-weisse added the no changelog Change won't be listed in release changelog label May 12, 2025
Copy link

netlify bot commented May 12, 2025

Deploy Preview for constellation-docs canceled.

Name Link
🔨 Latest commit e3a5bba
🔍 Latest deploy log https://app.netlify.com/sites/constellation-docs/deploys/6821ab5347c69c0008c262a4

@daniel-weisse daniel-weisse merged commit 228e1e7 into main May 12, 2025
8 checks passed
@daniel-weisse daniel-weisse deleted the dw/idempotent-cleanup branch May 12, 2025 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog Change won't be listed in release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants