-
Notifications
You must be signed in to change notification settings - Fork 609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with resource mv in terraform, moving to new naming convention for workers resources #3635
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Thank you for reporting this issue! For maintainers to dig into issues it is required that all issues include the entirety of This issue has been marked with |
You need to remove and import them back instead: removed {
from = module.cloudflare_resources["0"].cloudflare_worker_route.route
lifecycle { destroy = false }
}
import {
id = "<account-id>/<route-id>"
to = module.cloudflare_resources["0"].cloudflare_workers_route.route[0]
} |
Marking this issue as stale due to 30 days of inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 7 days it will automatically be closed. Maintainers can also remove the |
This issue was closed because it has been stalled for 7 days with no activity. |
Hello, Route workers are not available in v5? Regards |
Confirmation
Terraform and Cloudflare provider version
Affected resource(s)
cloudflare_worker_route --> cloudflare_workers_route
cloudflare_worker_script --> cloudflare_workers_script
Terraform configuration files
Link to debug output
https://gist.github.com/EdsonLuisVieira/db06077d60a1910ea1c1722a15c579e5
Panic output
No response
Expected output
moved successful or the name change does not generate a delete recreate
Actual output
│ Error: Invalid state move request
│
│ Cannot move module.cloudflare_resources["0"].cloudflare_worker_route.route
│ to module.cloudflare_resources["0"].cloudflare_workers_route.route:
│ resource types don't match.
Steps to reproduce
Test change version and resource name
cloudflare_worker_script
tocloudflare_workers_script
andcloudflare_worker_route
tocloudflare_workers_route
Test move
cloudflare_worker_script
tocloudflare_workers_script
andcloudflare_worker_route
tocloudflare_workers_route
4.
terragrunt state mv 'module.cloudflare_resources["0"].cloudflare_worker_route.route[0]' 'module.cloudflare_resources["0"].cloudflare_workers_route.route[0]'
Additional factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: