Repository navigation
fix: unblock the live apply (SSH key ID drift, Volume tier on the storage pull zone) - #57
Merged
Merged
Conversation
The servers look their SSH key up by name. Re-adding that key in the Hetzner console gives it a new ID, and since a changed ssh_keys replaces a server, the live plan wanted to replace all three. Like user_data, the key only matters when a server is created.
The live storage pull zone was moved to Bunny's cheaper Volume network outside Terraform, and an apply would have switched it back to Standard. storage_routing_tier in env_config now carries it, defaulting to Standard, with live set to Volume.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two pieces of live drift that would otherwise ride along with the next live apply (the one creating the Bunny uploads zone from #54).
What changed
ssh_keyschanges on existing servers. The servers look their SSH key up by name (SSH Red-Kite). In the live Hetzner project that key now has a new ID (110180213→113796728), so the live plan wanted to replace all three servers (ssh_keysforces replacement). The deploy pipeline would have blocked it, but live could not apply at all. Likeuser_data, the key only matters when a server is created; new servers still get the current one.storage_routing_tierinenv_config(optional(string, "Standard"), validated), with live onVolume.fltyrd-live-storageruns on Bunny's Volume network, set outside Terraform; an apply would have switched it back to Standard. Stage and bothcdnzones are on Standard and stay there.Verification
terraform test: 5 passed, including the default tier, an explicit Volume reaching the pull zone, and rejection of an unknown tier.terraform planagainst the real state with this branch:4 to add, 3 to change, 0 to destroy— the uploads zone, its 1Password item and the two storage edge rules from feat(storage): Bunny S3 storage zone for uploads, with a per-environment origin switch #54, pluskeep_disk false -> trueon the three servers (stored setting from feat(servers): move the live web servers to cx43, one server per apply #44, no power-off). No server replacement, no tier change.After this merges,
gh workflow run deploy.yml -f target=liveapplies the above.🤖