Skip to content

Commit

Permalink
go from Terraform 0.12 to 0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Sep 6, 2022
1 parent 47c6b4a commit 847ec66
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
7 changes: 6 additions & 1 deletion flake.nix
Expand Up @@ -87,7 +87,12 @@
name = system;
value = {
default = pkgs.mkShell {
buildInputs = with pkgs; [ git terraform graphviz borgbackup ];
buildInputs = with pkgs; [
git
terraform_0_13
graphviz
borgbackup
];
};
};
}) [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ]);
Expand Down
8 changes: 4 additions & 4 deletions terraform/main.tf
@@ -1,5 +1,5 @@
terraform {
required_version = "~> 0.12"
required_version = "~> 0.13"

backend "remote" {
organization = "brianhicks"
Expand All @@ -14,15 +14,15 @@ terraform {
variable "digitalocean_token" {}

provider "digitalocean" {
version = "1.14.0"
version = "~> 2.22"

token = var.digitalocean_token
}

variable "cloudflare_token" {}

provider "cloudflare" {
version = "~> 2.0"
version = "~> 3.22"

api_token = var.cloudflare_token
}
Expand Down Expand Up @@ -158,7 +158,7 @@ resource "cloudflare_record" "git_bytes_zone_caa" {
type = "CAA"
ttl = 1 # automatic

data = {
data {
flags = 0
tag = "issue"
value = "letsencrypt.org"
Expand Down
11 changes: 11 additions & 0 deletions terraform/versions.tf
@@ -0,0 +1,11 @@
terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
}
digitalocean = {
source = "digitalocean/digitalocean"
}
}
required_version = ">= 0.13"
}

0 comments on commit 847ec66

Please sign in to comment.