Skip to content

Commit

Permalink
Fix tflint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
theseanything committed Jul 11, 2024
1 parent a00e1a9 commit 7e535f6
Show file tree
Hide file tree
Showing 26 changed files with 43 additions and 28 deletions.
35 changes: 17 additions & 18 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ terraform {
name = "govuk-fastly"
}
}
required_version = "~> 1.7"
required_providers {
fastly = {
source = "fastly/fastly"
version = "5.3.1"
version = "5.11.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion modules/assets/service.tf → modules/assets/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ locals {
gcs_mirror_port = 443
},
{ # computed values
module_path = "${path.module}"
module_path = path.module
},
var.configuration,
var.secrets
Expand Down
Empty file added modules/assets/outputs.tf
Empty file.
4 changes: 3 additions & 1 deletion modules/assets/provider.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
terraform {
required_version = "~> 1.7"
required_providers {
fastly = {
source = "fastly/fastly"
source = "fastly/fastly"
version = "5.11.0"
}
}
}
1 change: 1 addition & 0 deletions modules/assets/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ variable "dictionaries" {
}

variable "vcl_template_file" {
type = string
default = "assets.vcl.tftpl"
}
2 changes: 1 addition & 1 deletion modules/bouncer/service.tf → modules/bouncer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "fastly_service_vcl" "service" {
name = "main"
content = templatefile("${path.module}/${var.vcl_template_file}", {
domain = var.domain,
module_path = "${path.module}"
module_path = path.module
})
}

Expand Down
Empty file added modules/bouncer/outputs.tf
Empty file.
4 changes: 3 additions & 1 deletion modules/bouncer/provider.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
terraform {
required_version = "~> 1.7"
required_providers {
fastly = {
source = "fastly/fastly"
source = "fastly/fastly"
version = "5.11.0"
}
http = {
source = "hashicorp/http"
Expand Down
2 changes: 1 addition & 1 deletion modules/datagovuk/service.tf → modules/datagovuk/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ locals {
},
{ # computed values
formatted_allowed_ip_addresses = local.formatted_allowed_ips
module_path = "${path.module}"
module_path = path.module
},
var.configuration,
var.secrets
Expand Down
Empty file added modules/datagovuk/outputs.tf
Empty file.
4 changes: 3 additions & 1 deletion modules/datagovuk/provider.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
terraform {
required_version = "~> 1.7"
required_providers {
fastly = {
source = "fastly/fastly"
source = "fastly/fastly"
version = "5.11.0"
}
}
}
1 change: 1 addition & 0 deletions modules/datagovuk/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ variable "dictionaries" {
}

variable "vcl_template_file" {
type = string
default = "datagovuk.vcl.tftpl"
}
File renamed without changes.
Empty file.
4 changes: 3 additions & 1 deletion modules/service-domain-redirect/provider.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
terraform {
required_version = "~> 1.7"
required_providers {
fastly = {
source = "fastly/fastly"
source = "fastly/fastly"
version = "5.11.0"
}
}
}
Empty file.
File renamed without changes.
Empty file added modules/tld-redirect/outputs.tf
Empty file.
4 changes: 3 additions & 1 deletion modules/tld-redirect/provider.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
terraform {
required_version = "~> 1.7"
required_providers {
fastly = {
source = "fastly/fastly"
source = "fastly/fastly"
version = "5.11.0"
}
}
}
Empty file.
File renamed without changes.
Empty file added modules/www/outputs.tf
Empty file.
4 changes: 3 additions & 1 deletion modules/www/provider.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
terraform {
required_version = "~> 1.7"
required_providers {
fastly = {
source = "fastly/fastly"
source = "fastly/fastly"
version = "5.11.0"
}
}
}
1 change: 1 addition & 0 deletions modules/www/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ variable "dictionaries" {
}

variable "vcl_template_file" {
type = string
default = "www.vcl.tftpl"
}
Empty file added outputs.tf
Empty file.

0 comments on commit 7e535f6

Please sign in to comment.