chore/cloudflare: enable DNS record state migrations - #45
Draft
keegancsmith wants to merge 1 commit into
Draft
Conversation
Cloudflare provider 5.7.1 cannot move legacy cloudflare_record state into cloudflare_dns_record, so attempting the MSP migration would fail during planning. Upgrade the generated bindings to the first provider release with the required MoveState handler. Refresh the generator's installer dependencies and Go toolchain because the previous HashiCorp signing key has expired and prevents reproducible generation. Amp-Thread-ID: https://ampcode.com/threads/T-019fb75b-c68c-768d-934d-042d44985f72 Co-authored-by: Amp <amp@ampcode.com>
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.
The MSP Cloudflare migration needs Terraform to transfer legacy
cloudflare_recordstate intocloudflare_dns_record. Provider 5.7.1 exposes the new resource but does not implement Terraform's cross-resource-type move protocol, so plans against existing state would fail.This regenerates the Cloudflare CDKTF bindings with provider 5.17.0, the first release containing the DNS record
MoveStatehandler. It also updates the generator's HashiCorp installer dependency and Go toolchain because the previous embedded signing key has expired and prevents reproducible generation.The generated DNS record, zone lookup, IP range, and provider packages compile successfully. The dependent Sourcegraph migration will synthesize and validate a real MSP canary before rollout.