Skip to content

Commit

Permalink
Update Terraform versions and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
klejejs committed Sep 27, 2024
1 parent 4485ecf commit 7682d8b
Show file tree
Hide file tree
Showing 18 changed files with 44 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0

- name: Setup Terraform
uses: hashicorp/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .modules/service/policy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ resource "aws_iam_role" "task-execution" {
resource "aws_iam_role_policy" "task-role" {
policy = data.aws_iam_policy_document.task-policy.json
role = aws_iam_role.task-execution.id
}
}
4 changes: 2 additions & 2 deletions .modules/webservice/dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ data "cloudflare_zone" "dns_zone" {
resource "cloudflare_record" "instance_dns" {
zone_id = data.cloudflare_zone.dns_zone.id
name = coalesce(var.subdomain, lower(var.service_name))
value = lower(aws_alb.main.dns_name)
content = lower(aws_alb.main.dns_name)
type = "CNAME"
ttl = 1
proxied = var.cloudflare_proxy
}
}
6 changes: 4 additions & 2 deletions .modules/webservice/versions.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
terraform {
required_version = "= 1.9.6"

required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 3.0"
version = "~> 4.0"
}
}
}
}
3 changes: 2 additions & 1 deletion assist/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ terraform {
}
}

required_version = "= 1.9.6"

required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 4"
version = "~> 4.0"
}
}
}
6 changes: 4 additions & 2 deletions cas_validator/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ terraform {
}
}

required_version = "= 1.9.6"

required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
version = "~> 5.0"
}

cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 3.0"
version = "~> 4.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion community/dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ data "cloudflare_zone" "dns_zone" {
resource "cloudflare_record" "community" {
zone_id = data.cloudflare_zone.dns_zone.id
name = "community"
value = aws_eip.discourse.public_ip
content = aws_eip.discourse.public_ip
type = "A"
proxied = true
}
2 changes: 1 addition & 1 deletion community/ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ resource "aws_instance" "discourse" {

resource "aws_eip" "discourse" {
instance = aws_instance.discourse.id
vpc = true
domain = "vpc"
}
6 changes: 4 additions & 2 deletions community/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ terraform {
}
}

required_version = "= 1.9.6"

required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
version = "~> 5.0"
}

cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 3.0"
version = "~> 4.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/certificate.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ resource "cloudflare_record" "dns_instance_validation" {

zone_id = data.cloudflare_zone.dns_zone.id
name = each.value.name
value = trimsuffix(each.value.record, ".")
content = trimsuffix(each.value.record, ".")
type = each.value.type
ttl = 1
proxied = false
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/region/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ resource "aws_route_table" "public" {
resource "aws_eip" "nat" {
count = 2

vpc = true
domain = "vpc"

tags = {
Region = data.aws_region.current.name
Expand Down
7 changes: 4 additions & 3 deletions infrastructure/versions.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
terraform {
required_version = "= 1.7.5"
required_version = "= 1.9.6"

required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
version = "~> 5.0"
}

cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 3.0"
version = "~> 4.0"
}
}
}
6 changes: 4 additions & 2 deletions ios_pushserver/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ terraform {
}
}

required_version = "= 1.9.6"

required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
version = "~> 5.0"
}

cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 3.0"
version = "~> 4.0"
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion os-builds/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ terraform {
}
}

required_version = "= 1.9.6"

required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 4"
version = "~> 4.0"
}
}
}
6 changes: 4 additions & 2 deletions private_demo/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ terraform {
}
}

required_version = "= 1.9.6"

required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
version = "~> 5.0"
}

cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 3.0"
version = "~> 4.0"
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions service_hub_bots/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ terraform {
}
}

required_version = "= 1.9.6"

required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
version = "~> 5.0"
}

cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 3.0"
version = "~> 4.0"
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion static_dns/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ terraform {
}
}

required_version = "= 1.9.6"

required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 3.0"
version = "~> 4.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion static_dns/record._checkdns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
resource "cloudflare_record" "_checkdns" {
zone_id = data.cloudflare_zone.dns_zone.id
name = "_checkdns"
value = "1.1.1.1"
content = "1.1.1.1"
type = "A"
ttl = 1
proxied = false
Expand Down

0 comments on commit 7682d8b

Please sign in to comment.