abcxyz / abcxyz/guardian

[terraform] support moving state from one backend to another

Ouverte
#175 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
Go
Étoiles
26
Forks
7
Merge moyen
1 j 1 h
PR mergées (30 j)
1

Description

### TL;DR

Auto-generate terraform `state rm` and `import` commands from resources that have been moved from one terraform entrypoint to another.

### Detailed design

It is possible to determine from a `terraform plan` which resources have been moved from one state to another state. We can use these details to automatically determine which `state rm` and `import` commands need to be run.

Blocker: how do we determine import ID programatically? (not sure there is an easy solution, may need to hardcode and only support a subset of all resources).

### Alternatives considered

_No response_

### Additional information

_No response_

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.