Skip to content

Update DigitalOcean Terraform Provider to 2.28.1 #1268

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

Closed
79 of 86 tasks
php-coder opened this issue Mar 2, 2020 · 2 comments
Closed
79 of 86 tasks

Update DigitalOcean Terraform Provider to 2.28.1 #1268

php-coder opened this issue Mar 2, 2020 · 2 comments
Assignees
Labels
Milestone

Comments

@php-coder
Copy link
Owner

php-coder commented Mar 2, 2020

See https://github.com/digitalocean/terraform-provider-digitalocean/blob/main/CHANGELOG.md

Terraform changelogs:

@php-coder php-coder added this to the 0.4.3 milestone Mar 2, 2020
@php-coder php-coder self-assigned this Mar 2, 2020
@php-coder php-coder modified the milestones: 0.4.3, next Mar 4, 2020
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 1.14.0 Update DigitalOcean Terraform Provider to 1.15.0 Mar 26, 2020
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 1.15.0 Update DigitalOcean Terraform Provider to 1.15.1 Mar 26, 2020
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 1.15.1 Update DigitalOcean Terraform Provider to 1.20.0 Jun 25, 2020
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 1.20.0 Update DigitalOcean Terraform Provider to 1.20.1 Jul 20, 2020
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 1.20.1 Update DigitalOcean Terraform Provider to 1.22.0 Jul 23, 2020
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 1.22.0 Update DigitalOcean Terraform Provider to 1.22.1 Aug 12, 2020
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 1.22.1 Update DigitalOcean Terraform Provider to 1.22.2 Aug 17, 2020
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 1.22.2 Update DigitalOcean Terraform Provider to 1.23.0 Oct 14, 2020
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 1.23.0 Update DigitalOcean Terraform Provider to 2.0.0 Oct 20, 2020
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.0.0 Update DigitalOcean Terraform Provider to 2.0.2 Nov 2, 2020
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.0.2 Update DigitalOcean Terraform Provider to 2.1.0 Nov 11, 2020
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.1.0 Update DigitalOcean Terraform Provider to 2.2.0 Nov 16, 2020
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.2.0 Update DigitalOcean Terraform Provider to 2.3.0 Dec 4, 2020
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.3.0 Update DigitalOcean Terraform Provider to 2.4.0 Jan 20, 2021
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.4.0 Update DigitalOcean Terraform Provider to 2.5.0 Feb 4, 2021
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.5.0 Update DigitalOcean Terraform Provider to 2.5.1 Feb 6, 2021
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.5.1 Update DigitalOcean Terraform Provider to 2.6.0 Mar 11, 2021
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.6.0 Update DigitalOcean Terraform Provider to 2.7.0 Mar 29, 2021
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.7.0 Update DigitalOcean Terraform Provider to 2.8.0 Apr 21, 2021
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.8.0 Update DigitalOcean Terraform Provider to 2.9.0 May 30, 2021
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.9.0 Update DigitalOcean Terraform Provider to 2.10.1 Jun 30, 2021
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.10.1 Update DigitalOcean Terraform Provider to 2.11.0 Aug 10, 2021
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.11.0 Update DigitalOcean Terraform Provider to 2.11.1 Aug 20, 2021
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.11.1 Update DigitalOcean Terraform Provider to 2.12.0 Sep 29, 2021
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.15.0 Update DigitalOcean Terraform Provider to 2.16.0 Nov 10, 2021
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.16.0 Update DigitalOcean Terraform Provider to 2.17.0 Jan 15, 2022
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.17.0 Update DigitalOcean Terraform Provider to 2.17.1 Jan 29, 2022
@php-coder php-coder modified the milestones: next, 0.4.7 Jan 29, 2022
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.17.1 Update DigitalOcean Terraform Provider to 2.19.0 Apr 11, 2022
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.19.0 Update DigitalOcean Terraform Provider to 2.20.0 May 27, 2022
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.20.0 Update DigitalOcean Terraform Provider to 2.21.0 Jun 17, 2022
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.21.0 Update DigitalOcean Terraform Provider to 2.22.0 Aug 18, 2022
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.22.0 Update DigitalOcean Terraform Provider to 2.22.1 Aug 18, 2022
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.22.1 Update DigitalOcean Terraform Provider to 2.22.2 Sep 2, 2022
@php-coder
Copy link
Owner Author

$ terraform init

Initializing the backend...

Initializing provider plugins...
- Checking for available provider plugins...

Registry service unreachable.

This may indicate a network issue, or an issue with the requested Terraform Registry.


Error: registry service is unreachable, check https://status.hashicorp.com/ for status updates

and

$ TF_LOG=TRACE terraform init                                                                                                                                                        11:20
2022/09/09 11:20:59 [INFO] Terraform version: 0.12.19
2022/09/09 11:20:59 [INFO] Go runtime version: go1.13.5
2022/09/09 11:20:59 [INFO] CLI args: []string{"/usr/local/bin/terraform", "init"}
2022/09/09 11:20:59 [DEBUG] Attempting to open CLI config file: /Users/coder/.terraformrc
2022/09/09 11:20:59 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2022/09/09 11:20:59 [INFO] CLI command args: []string{"init"}

Initializing the backend...
2022/09/09 11:20:59 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2022/09/09 11:20:59 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2022/09/09 11:20:59 [DEBUG] New state was assigned lineage "f8ed67b8-a5ba-5214-1750-16de52c5c6cc"
2022/09/09 11:20:59 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
2022/09/09 11:20:59 [TRACE] Meta.Backend: instantiated backend of type <nil>
2022/09/09 11:20:59 [DEBUG] checking for provider in "."
2022/09/09 11:20:59 [DEBUG] checking for provider in "/usr/local/bin"
2022/09/09 11:20:59 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64"
2022/09/09 11:20:59 [DEBUG] found provider "terraform-provider-digitalocean_v1.12.0_x4"
2022/09/09 11:20:59 [DEBUG] found valid plugin: "digitalocean", "1.12.0", "/Users/coder/git/mystamps/infra/terraform/.terraform/plugins/darwin_amd64/terraform-provider-digitalocean_v1.12.0_x4"
2022/09/09 11:20:59 [DEBUG] checking for provisioner in "."
2022/09/09 11:20:59 [DEBUG] checking for provisioner in "/usr/local/bin"
2022/09/09 11:20:59 [DEBUG] checking for provisioner in ".terraform/plugins/darwin_amd64"
2022/09/09 11:20:59 [TRACE] Meta.Backend: backend <nil> does not support operations, so wrapping it in a local backend
2022/09/09 11:20:59 [TRACE] backend/local: state manager for workspace "default" will:
 - read initial snapshot from terraform.tfstate
 - write new snapshots to terraform.tfstate
 - create any backup at terraform.tfstate.backup
2022/09/09 11:20:59 [TRACE] statemgr.Filesystem: reading initial snapshot from terraform.tfstate
2022/09/09 11:20:59 [TRACE] statemgr.Filesystem: read snapshot with lineage "a98e4673-1017-865e-262b-c7897119d416" serial 14
2022/09/09 11:20:59 [DEBUG] checking for provider in "."
2022/09/09 11:20:59 [DEBUG] checking for provider in "/usr/local/bin"
2022/09/09 11:20:59 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64"
2022/09/09 11:20:59 [DEBUG] found provider "terraform-provider-digitalocean_v1.12.0_x4"

Initializing provider plugins...
2022/09/09 11:20:59 [DEBUG] found valid plugin: "digitalocean", "1.12.0", "/Users/coder/git/mystamps/infra/terraform/.terraform/plugins/darwin_amd64/terraform-provider-digitalocean_v1.12.0_x4"
2022/09/09 11:20:59 [DEBUG] plugin requirements: "digitalocean"="2.22.2"
2022/09/09 11:20:59 [DEBUG] Service discovery for registry.terraform.io at https://registry.terraform.io/.well-known/terraform.json
2022/09/09 11:20:59 [TRACE] HTTP client GET request to https://registry.terraform.io/.well-known/terraform.json
- Checking for available provider plugins...
2022/09/09 11:20:59 [DEBUG] Failed to request discovery document: 403 Forbidden

Registry service unreachable.

This may indicate a network issue, or an issue with the requested Terraform Registry.


Error: registry service is unreachable, check https://status.hashicorp.com/ for status updates

@php-coder
Copy link
Owner Author

php-coder commented Sep 9, 2022

Here is how to download it manually:

$ cd ~/git/mystamps/infra/terraform/.terraform/plugins/darwin_amd64
$ wget https://github.com/digitalocean/terraform-provider-digitalocean/releases/download/v2.22.2/terraform-provider-digitalocean_2.22.2_darwin_amd64.zip
$ unzip terraform-provider-digitalocean_2.22.2_darwin_amd64.zip
Archive:  terraform-provider-digitalocean_2.22.2_darwin_amd64.zip
  inflating: CHANGELOG.md
  inflating: LICENSE
  inflating: README.md
  inflating: terraform-provider-digitalocean_v2.22.2
$ rm -fv terraform-provider-digitalocean_2.22.2_darwin_amd64.zip CHANGELOG.md LICENSE README.md

php-coder added a commit that referenced this issue Sep 9, 2022
$ terraform version
Terraform v0.12.19

Part of #1268

[skip ci]
php-coder added a commit that referenced this issue Sep 9, 2022
Unfortunately, terraform init didn't work for me and failed with:
Registry service unreachable.

Here is how to download provider manually:
$ cd ~/git/mystamps/infra/terraform/.terraform/plugins/darwin_amd64
$ wget https://github.com/digitalocean/terraform-provider-digitalocean/releases/download/v2.22.2/terraform-provider-digitalocean_2.22.2_darwin_amd64.zip
$ unzip terraform-provider-digitalocean_2.22.2_darwin_amd64.zip
Archive:  terraform-provider-digitalocean_2.22.2_darwin_amd64.zip
  inflating: CHANGELOG.md
  inflating: LICENSE
  inflating: README.md
  inflating: terraform-provider-digitalocean_v2.22.2
$ rm -fv terraform-provider-digitalocean_2.22.2_darwin_amd64.zip CHANGELOG.md LICENSE README.md
$ terraform init

Part of #1268

[skip ci]
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.22.2 Update DigitalOcean Terraform Provider to 2.23.0 Oct 3, 2022
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.23.0 Update DigitalOcean Terraform Provider to 2.25.0 Nov 25, 2022
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.25.0 Update DigitalOcean Terraform Provider to 2.25.2 Nov 25, 2022
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.25.2 Update DigitalOcean Terraform Provider to 2.28.0 Apr 28, 2023
@php-coder php-coder changed the title Update DigitalOcean Terraform Provider to 2.28.0 Update DigitalOcean Terraform Provider to 2.28.1 May 3, 2023
php-coder added a commit that referenced this issue May 17, 2023
php-coder added a commit that referenced this issue May 17, 2023
Warning: Argument is deprecated

  on my-stamps.tf line 25, in resource "digitalocean_droplet" "web":
  25:   private_networking = true

This parameter has been deprecated. Use `vpc_uuid` instead to specify a VPC
network for the Droplet. If no `vpc_uuid` is provided, the Droplet will be
placed in your account's default VPC for the region.

Part of #1268

[skip ci]
php-coder added a commit that referenced this issue May 19, 2023
$ vim .terraform.version
$ tfenv install
$ terraform 0.13upgrade
$ vim my-stamps.tf
$ vim versions.tf
$ git add versions.tf
$ terraform state replace-provider -- -/digitalocean digitalocean/digitalocean
$ terraform init
$ terraform plan

"terraform state replace-provider" is required to prevent terraform to download the lastest
version and use the one that is specified. See hashicorp/terraform#25819

Changelogs:
- https://developer.hashicorp.com/terraform/language/v1.1.x/upgrade-guides/0-13
- https://github.com/hashicorp/terraform/blob/v0.13/CHANGELOG.md

Part of #1268

[skip ci]
php-coder added a commit that referenced this issue May 19, 2023
Should be in 952d04a commit.

Relate to #1268

[skip ci]
php-coder added a commit that referenced this issue May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant