Skip to content

Commit c145624

Browse files
author
Aaron Steers
authored
Opinionated formatting (tf 0.14.0) (#148)
1 parent 94cd6c9 commit c145624

File tree

13 files changed

+17
-17
lines changed

13 files changed

+17
-17
lines changed

Diff for: catalog/aws/data-lake/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
resource "random_id" "suffix" { byte_length = 2 }
1111

12-
data aws_s3_bucket "data_bucket_override" {
12+
data "aws_s3_bucket" "data_bucket_override" {
1313
count = var.data_bucket_override != null ? 1 : 0
1414
bucket = var.data_bucket_override
1515
}

Diff for: catalog/aws/dbt/variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ variable "resource_tags" {
2626

2727
variable "admin_cidr" {
2828
description = "Optional. The range of IP addresses which should be able to access the DBT instance. Defaults to the local user's current IP."
29-
type = list
29+
type = list(any)
3030
default = []
3131
}
3232
variable "container_image" {

Diff for: catalog/aws/ml-ops/s3.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
resource "random_id" "suffix" { byte_length = 2 }
22

3-
data aws_s3_bucket "ml_bucket_override" {
3+
data "aws_s3_bucket" "ml_bucket_override" {
44
count = var.ml_bucket_override != null ? 1 : 0
55
bucket = var.ml_bucket_override
66
}

Diff for: catalog/aws/ml-ops/variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ variable "static_hyperparameters" {
144144
Map of hyperparameter names to static values, which should not be altered during hyperparameter tuning.
145145
E.g. `{ "kfold_splits" = "5" }`
146146
EOF
147-
type = map
147+
type = map(any)
148148
default = {
149149
}
150150
}

Diff for: components/aws/ec2/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ data "http" "icanhazip" { url = "https://ipv4.icanhazip.com" }
99

1010
locals {
1111
project_shortname = substr(var.name_prefix, 0, length(var.name_prefix) - 1)
12-
my_ip = "${chomp(data.http.icanhazip.body)}"
12+
my_ip = chomp(data.http.icanhazip.body)
1313
my_ip_cidr = "${chomp(data.http.icanhazip.body)}/32"
1414
admin_cidr = flatten([local.my_ip_cidr, var.admin_cidr])
1515
app_cidr = length(var.app_cidr) == 0 ? local.admin_cidr : var.app_cidr

Diff for: components/aws/ec2/variables.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ variable "admin_ports" {
3737
A map defining the admin ports which should be goverened by `admin_cidr`. Single ports
3838
(e.g. '22') and port ranges (e.g. '0:65535') and both supported.
3939
EOF
40-
type = map
40+
type = map(any)
4141
default = { "SSH" : "22" }
4242
}
4343
variable "app_cidr" {
@@ -54,7 +54,7 @@ variable "app_ports" {
5454
A map defining the end-user ports which should be goverened by `app_cidr`. Single ports
5555
(e.g. '22') and port ranges (e.g. '0:65535') and both supported.
5656
EOF
57-
type = map
57+
type = map(any)
5858
default = {}
5959
}
6060
variable "cluster_ports" {

Diff for: components/aws/ecr/outputs.tf

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
output "ecr_repo_arn" {
22
description = "The unique ID (ARN) of the ECR repo."
3-
value = "${aws_ecr_repository.ecr_repo.arn}"
3+
value = aws_ecr_repository.ecr_repo.arn
44
}
55
output "ecr_repo_root" {
66
description = "The path to the ECR repo, excluding image name."
7-
value = "${dirname(aws_ecr_repository.ecr_repo.repository_url)}"
7+
value = dirname(aws_ecr_repository.ecr_repo.repository_url)
88
}
99
output "ecr_image_url" {
1010
description = "The full path to the ECR image, including image name."
11-
value = "${aws_ecr_repository.ecr_repo.repository_url}"
11+
value = aws_ecr_repository.ecr_repo.repository_url
1212
}

Diff for: components/aws/ecs-task/outputs.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ output "ecs_runtask_cli" {
3838
}
3939
output "ecs_task_name" {
4040
description = "The name of the ECS task."
41-
value = "${aws_ecs_task_definition.ecs_task.family}"
41+
value = aws_ecs_task_definition.ecs_task.family
4242
}
4343
output "ecs_security_group" {
4444
description = "The name of the EC2 security group used by ECS."

Diff for: components/aws/ecs-task/variables.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ variable "admin_ports" {
3636
}
3737
variable "admin_cidr" {
3838
description = "Optional. The range of IP addresses which should be able to access admin ports. Defaults to the local user's current IP."
39-
type = list
39+
type = list(any)
4040
default = []
4141
}
4242
variable "app_ports" {
@@ -46,7 +46,7 @@ variable "app_ports" {
4646
}
4747
variable "app_cidr" {
4848
description = "Optional. The range of IP addresses which should be able to access app ports. Defaults to the local user's current IP."
49-
type = list
49+
type = list(any)
5050
default = []
5151
}
5252
variable "container_command" {

Diff for: components/aws/glue-crawler/outputs.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
output "glue_crawler_name" {
22
description = "The name of the Glue crawler."
3-
value = "${aws_glue_crawler.glue_crawler.id}"
3+
value = aws_glue_crawler.glue_crawler.id
44
}

Diff for: samples/azure/data-lake-gen1-on-azure/00-resource-group.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ locals {
1818
project_shortname = local.config["project_shortname"]
1919
azure_subscription = local.config["subscription_id"]
2020
azure_location = local.config["azure_location"]
21-
name_prefix = "${local.project_shortname}"
21+
name_prefix = local.project_shortname
2222
resource_tags = merge(local.config["resource_tags"], { project = local.project_shortname })
2323
}
2424

Diff for: samples/azure/data-lake-gen2-on-azure/00-resource-group.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ locals {
1818
project_shortname = local.config["project_shortname"]
1919
azure_subscription = local.config["subscription_id"]
2020
azure_location = local.config["azure_location"]
21-
name_prefix = "${local.project_shortname}"
21+
name_prefix = local.project_shortname
2222
resource_tags = merge(local.config["resource_tags"], { project = local.project_shortname })
2323
}
2424

Diff for: samples/azure/storage-on-azure/00-resource-group.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ locals {
1818
project_shortname = local.config["project_shortname"]
1919
azure_subscription = local.config["subscription_id"]
2020
azure_location = local.config["azure_location"]
21-
name_prefix = "${local.project_shortname}"
21+
name_prefix = local.project_shortname
2222
resource_tags = merge(local.config["resource_tags"], { project = local.project_shortname })
2323
}
2424

0 commit comments

Comments
 (0)