Skip to content

Commit 952d04a

Browse files
committed
chore: update Terraform to 0.13.7
$ 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]
1 parent 936d2a5 commit 952d04a

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

infra/terraform/.terraform-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.12.31
1+
0.13.7

infra/terraform/my-stamps.tf

-5
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,12 @@
22
# @todo #1000 Terraform: add UptimeRobot
33
# @todo #1000 Terraform: add Mailgun
44

5-
terraform {
6-
required_version = ">= 0.12"
7-
}
8-
95
variable "do_token" {
106
}
117

128
# Digital Ocean provider docs: https://www.terraform.io/docs/providers/do/index.html
139
provider "digitalocean" {
1410
token = var.do_token
15-
version = "2.22.2"
1611
}
1712

1813
# Droplet docs: https://www.terraform.io/docs/providers/do/r/droplet.html

infra/terraform/versions.tf

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
terraform {
2+
required_version = ">= 0.13"
3+
4+
required_providers {
5+
digitalocean = {
6+
source = "digitalocean/digitalocean"
7+
version = "2.22.2"
8+
}
9+
}
10+
}

0 commit comments

Comments
 (0)