Skip to content

Commit

Permalink
bump terrafrom version (#666)
Browse files Browse the repository at this point in the history
  • Loading branch information
amitsagtani97 authored Oct 13, 2023
1 parent a7bf512 commit f5574fc
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ rec {
moreutils
skopeo
sops
terraform_0_13
terraform_1
yq
create-container-dump
list-helm-containers
Expand Down
2 changes: 1 addition & 1 deletion offline/cd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ function cleanup {
echo done
}
trap cleanup EXIT

(cd terraform/examples/wire-server-deploy-offline-hetzner ; terraform init ; terraform apply -auto-approve )
adminhost=$(cd terraform/examples/wire-server-deploy-offline-hetzner ; terraform output adminhost)
adminhost="${adminhost//\"/}" # remove extra quotes around the returned string
ssh_private_key=$(cd terraform/examples/wire-server-deploy-offline-hetzner ; terraform output ssh_private_key)

eval `ssh-agent`
Expand Down
5 changes: 2 additions & 3 deletions terraform/environment/terraform.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
terraform {
required_version = "~> 0.13"
required_version = "~> 1.1"

required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 2.58"
}
hcloud = {
source = "terraform-providers/hcloud"
version = "~> 1.19"
source = "hetznercloud/hcloud"
}
}

Expand Down
2 changes: 1 addition & 1 deletion terraform/examples/create-infrastructure.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Example terraform script to create virtual machines on the hetzner cloud provider
# and an ansible-compatible inventory file
terraform {
required_version = ">= 0.12.1"
required_version = "~> 1.1"

# Recommended: configure a backend to share terraform state
# See terraform documentation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ terraform {
source = "hetznercloud/hcloud"
}
}
required_version = ">= 0.13"
required_version = "~> 1.1"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
terraform {
required_version = "~> 0.12"
required_version = "~> 1.1"
}
2 changes: 1 addition & 1 deletion terraform/modules/aws-cargohold-asset-storage/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
terraform {
required_version = "~> 0.12"
required_version = "~> 1.1"
}
2 changes: 1 addition & 1 deletion terraform/modules/aws-dns-records/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
terraform {
required_version = "~> 0.12"
required_version = "~> 1.1"
}
2 changes: 1 addition & 1 deletion terraform/modules/aws-network-load-balancer/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
terraform {
required_version = "~> 0.12"
required_version = "~> 1.1"
}
2 changes: 1 addition & 1 deletion terraform/modules/aws-terraform-state-share/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
terraform {
required_version = "~> 0.12"
required_version = "~> 1.1"
}
2 changes: 1 addition & 1 deletion terraform/modules/aws-vpc/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 0.12.0"
required_version = "~> 1.1"
}

# In AWS, (eu-central-1)
Expand Down
4 changes: 2 additions & 2 deletions terraform/modules/hetzner-kubernetes/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ terraform {
source = "hashicorp/aws"
}
hcloud = {
source = "terraform-providers/hcloud"
source = "hetznercloud/hcloud"
}
}
required_version = ">= 0.13"
required_version = "~> 1.1"
}
4 changes: 2 additions & 2 deletions terraform/modules/sft/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ terraform {
source = "hashicorp/aws"
}
hcloud = {
source = "terraform-providers/hcloud"
source = "hetznercloud/hcloud"
}
}
required_version = ">= 0.13"
required_version = "~> 1.1"
}

0 comments on commit f5574fc

Please sign in to comment.