Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save v0112358/abb0290092699a70d77025c99bbd789d to your computer and use it in GitHub Desktop.
Save v0112358/abb0290092699a70d77025c99bbd789d to your computer and use it in GitHub Desktop.
Upgrade terraform provider to use digitalocean_vpc resource

The error message:

Error: Invalid resource type

  on vpc-prod-cicd-k8s.tf line 1, in resource "digitalocean_vpc" "vpc_prod_cicd_k8s":
   1: resource "digitalocean_vpc" "vpc_prod_cicd_k8s" {

The provider provider.digitalocean does not support resource type
"digitalocean_vpc".

Upgrade plugin for provider "digitalocean"

☁  prod [master] ⚡ terraform12 init -upgrade

Initializing the backend...

Initializing provider plugins...
- Checking for available provider plugins...
- Downloading plugin for provider "digitalocean" (terraform-providers/digitalocean) 1.18.0...

The following providers do not have any version constraints in configuration,
so the latest version was installed.

To prevent automatic upgrades to new major versions that may contain breaking
changes, it is recommended to add version = "..." constraints to the
corresponding provider blocks in configuration, with the constraint strings
suggested below.

* provider.digitalocean: version = "~> 1.18"

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment