upgrade Terraform to 1.0, upgrade all providers

https://www.terraform.io/upgrade-guides/0-15.html
https://www.terraform.io/upgrade-guides/1-0.html

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-06-23 12:53:26 +02:00
parent e0ee43975f
commit 080563f30c
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
4 changed files with 12 additions and 13 deletions

View File

@ -6,12 +6,12 @@
- name: infra-role-bootstrap
src: git@github.com:status-im/infra-role-bootstrap.git
version: 4dfd3e0b32a93e1f07a73c6794684bae21f2e556
version: c1f535e4b2851f08b1013bd57ab42d0c1e31e3b2
scm: git
- name: consul-service
src: git@github.com:status-im/infra-role-consul-service.git
version: b1d5ad5caa7d7a036fd175292fa497175bb7c54c
version: 87f4498f90f0cbb66a1ddb425e8953b04ced1891
scm: git
- name: swap-file

View File

@ -3,8 +3,8 @@
terraform {
backend "consul" {
address = "https://consul.statusim.net:8400"
lock = true /* Lock to avoid syncing issues */
gzip = true /* KV store has a limit of 512KB */
lock = true /* Lock to avoid syncing issues */
gzip = true /* KV store has a limit of 512KB */
/* WARNING This needs to be changed for every repo. */
path = "terraform/avalanche/"
ca_file = "ansible/files/consul-ca.crt"
@ -23,7 +23,7 @@ data "cloudflare_zones" "active" {
/* For easier access to zone ID by domain name */
locals {
zones = {
for zone in data.cloudflare_zones.active.zones:
zone.name => zone.id
for zone in data.cloudflare_zones.active.zones :
zone.name => zone.id
}
}

View File

@ -1,5 +1,5 @@
# Uses PASSWORD_STORE_DIR environment variable
provider "pass" { }
provider "pass" {}
/* Token for interacting with Cloudflare API. */
data "pass_password" "cloudflare_token" {

View File

@ -1,17 +1,16 @@
terraform {
required_version = "~> 0.14.4"
required_version = "~> 1.0.0"
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = " = 2.10.1"
}
digitalocean = {
source = "digitalocean/digitalocean"
version = " = 2.5.1"
version = " = 2.21.0"
}
pass = {
source = "camptocamp/pass"
version = " = 2.0.0"
}
digitalocean = {
source = "digitalocean/digitalocean"
}
}
}