# Runpod Terraform provider 2.0: migrate from 1.x

DevFeed: [Runpod Terraform provider 2.0: migrate from 1.x](<https://devfeed.tech/articles/runpod-terraform-provider-2-0-migrate-from-1-x-124883.md>)

Original publisher: [Read original article](<https://www.runpod.io/blog/runpod-terraform-provider-2-0-migration>)

Author: The Team at Runpod

Published: 2026-11-10T06:10:33Z

Content type: tutorial

Language: en

Sources: [Runpod Blog.](<https://devfeed.tech/sources/runpod-blog.md>)

Topics: [Terraform](<https://devfeed.tech/topics/terraform.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [ai](<https://devfeed.tech/tags/ai.md>), [api-key](<https://devfeed.tech/tags/api-key.md>), [argument](<https://devfeed.tech/tags/argument.md>), [auth](<https://devfeed.tech/tags/auth.md>), [backends](<https://devfeed.tech/tags/backends.md>), [base](<https://devfeed.tech/tags/base.md>), [ci](<https://devfeed.tech/tags/ci.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [clusters](<https://devfeed.tech/tags/clusters.md>), [coding](<https://devfeed.tech/tags/coding.md>), [coding-agent](<https://devfeed.tech/tags/coding-agent.md>), [commit](<https://devfeed.tech/tags/commit.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [migrate](<https://devfeed.tech/tags/migrate.md>), [plan](<https://devfeed.tech/tags/plan.md>), [pod](<https://devfeed.tech/tags/pod.md>), [rest](<https://devfeed.tech/tags/rest.md>), [terraform](<https://devfeed.tech/tags/terraform.md>), [terraform-provider](<https://devfeed.tech/tags/terraform-provider.md>)

## AI overview

Runpod Terraform provider 2.0 is generated from the REST v2 API, giving its attributes documented v2 mappings; version 1.x used REST v1, which Runpod is retiring. The provider manages Pods, Serverless endpoints, templates, volumes, Instant Clusters, and registry credentials through Terraform. It requires Terraform 1.6 or later, and the article recommends supplying the API key through `RUNPOD_API_KEY`. Plans let you review changes before applying billable resources; running Pods bill by the minute, so destroy them when finished or set `desired_state = "EXITED"` to stop them while retaining configuration. Migration is breaking: 2.0.0 has no state upgraders, so resources need configuration edits and state actions. Some 1.x Pods may be replaced because v2 reads omit eight create-time attributes; replacement permanently deletes the Pod and anything not on a network volume. The guide advises reviewing planned replacements and describes leaving Pods on 1.x or adopting them with `ignore_changes` before the first apply.

## Source excerpt

## How Runpod's agent skills and MCP server work together An API tells an agent what it can do, not whether it should. See how skills, a concept graph and live-account tests keep agents right on Runpod. Blog Put Runpod in the same Terraform plan as the rest of your stack. Deploy your first Pod, let an agent write the plan and migrate from 1.x. Terraform lets you describe infrastructure as code, preview the changes and apply them.