Skip to content

Commit db456f7

Browse files
committed
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 <[email protected]>
1 parent 3a3d52a commit db456f7

File tree

11 files changed

+20
-18
lines changed

11 files changed

+20
-18
lines changed

ansible/requirements.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
- name: infra-role-bootstrap-windows
2323
src: [email protected]:status-im/infra-role-bootstrap.git
24-
version: c1f535e4b2851f08b1013bd57ab42d0c1e31e3b2
24+
version: eb6400281bd3183733691344191bd53b2eceaa49
2525
scm: git
2626

2727
- name: oauth-proxy

common.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ module "nimbus_network" {
1010

1111
name = "nimbus"
1212
stage = "test"
13-
zones = [ "eu-central-1a" ]
13+
zones = ["eu-central-1a"]
1414

1515
/* Firewall */
1616
open_udp_ports = local.nimbus_ports
17-
open_tcp_ports = concat(local.nimbus_ports, [ "22", "80", "443" ])
17+
open_tcp_ports = concat(local.nimbus_ports, ["22", "80", "443"])
1818
}

dash.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module "nimbus_dashboard" {
1616
"80", /* HTTP */
1717
"443", /* HTTPS */
1818
]
19-
19+
2020
/* Plumbing */
2121
vpc_id = module.nimbus_network.vpc.id
2222
subnet_id = module.nimbus_network.subnets[0].id

geth.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module "nimbus_geth_mainnet" {
1515
host_count = 1
1616

1717
/* Firewall */
18-
open_tcp_ports = [ 30303 ]
18+
open_tcp_ports = [30303]
1919

2020
/* Plumbing */
2121
vpc_id = module.nimbus_network.vpc.id
@@ -41,7 +41,7 @@ module "nimbus_geth_goerli" {
4141
host_count = 1
4242

4343
/* Firewall */
44-
open_tcp_ports = [ 30303 ]
44+
open_tcp_ports = [30303]
4545

4646
/* Plumbing */
4747
vpc_id = module.nimbus_network.vpc.id

logs.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module "nimbus_log_store" {
1818
"80", /* HTTP */
1919
"443", /* HTTPS */
2020
]
21-
21+
2222
/* Plumbing */
2323
vpc_id = module.nimbus_network.vpc.id
2424
subnet_id = module.nimbus_network.subnets[0].id

main.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ data "cloudflare_zones" "active" {
2525
/* For easier access to zone ID by domain name */
2626
locals {
2727
zones = {
28-
for zone in data.cloudflare_zones.active.zones:
29-
zone.name => zone.id
28+
for zone in data.cloudflare_zones.active.zones :
29+
zone.name => zone.id
3030
}
3131
}
3232

modules/hetzner/versions.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
terraform {
2-
required_version = "~> 0.14.4"
2+
required_version = "~> 1.0.0"
33
required_providers {
44
ansible = {
55
source = "nbering/ansible"
66
version = " = 1.0.4"
77
}
88
cloudflare = {
99
source = "cloudflare/cloudflare"
10-
version = " = 2.10.1"
10+
version = " = 2.21.0"
1111
}
1212
}
1313
}

prater.tf

+3-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ module "nimbus_nodes_prater_unstable_windows" {
158158
zone = "us-central1-a"
159159

160160
/* System */
161-
image = "windows-cloud/windows-server-2019-dc-v20210608"
161+
image = "windows-cloud/windows-server-2019-dc-v20210608"
162+
#image = "windows-cloud/windows-server-2016-dc-v20210608"
163+
#image = "windows-cloud/windows-server-2012-r2-dc-v20210608"
162164
win_password = data.pass_password.windows_user_pass.password
163165
ansible_playbook = "${path.cwd}/ansible/bootstrap-win.yml"
164166

users.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ resource "aws_iam_group" "nimbus_team" {
1010
}
1111

1212
resource "aws_iam_access_key" "nimbus_team" {
13-
user = aws_iam_user.nimbus_team[count.index].name
14-
count = length(aws_iam_user.nimbus_team)
13+
user = aws_iam_user.nimbus_team[count.index].name
14+
count = length(aws_iam_user.nimbus_team)
1515

1616
/* GPG key for encrypting the secret key */
1717
pgp_key = file("files/${aws_iam_user.nimbus_team[count.index].name}.gpg")

variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ variable "log_stores_count" {
2727
variable "nimbus_team_members" {
2828
description = "List of Nimbus team members with Console access."
2929
type = list(string)
30-
default = [ "stefantalpalaru" ]
30+
default = ["stefantalpalaru"]
3131
}

versions.tf

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
terraform {
2-
required_version = "~> 0.14.4"
2+
required_version = "~> 1.0.0"
33
required_providers {
44
cloudflare = {
55
source = "cloudflare/cloudflare"
6-
version = " = 2.10.1"
6+
version = " = 2.21.0"
77
}
88
aws = {
99
source = "hashicorp/aws"
10-
version = " = 2.46.0"
10+
version = " = 3.46.0"
1111
}
1212
pass = {
1313
source = "camptocamp/pass"

0 commit comments

Comments
 (0)