Skip to content

Commit

Permalink
It's local not locals
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Feb 2, 2024
1 parent d465e4f commit df59b9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tf/environments/production/tier1/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ resource "aws_instance" "clickhouse_server_prod_tier1" {

user_data = templatefile("${path.module}/templates/clickhouse-setup.sh", {
datadog_api_key = var.datadog_api_key,
hostname = locals.clickhouse_hostname,
device_name = locals.clickhouse_device_name
hostname = local.clickhouse_hostname,
device_name = local.clickhouse_device_name
})

tags = local.tags
Expand All @@ -103,7 +103,7 @@ resource "aws_ebs_volume" "clickhouse_data_volume" {
}

resource "aws_volume_attachment" "clickhouse_data_volume_attachment" {
device_name = locals.clickhouse_device_name
device_name = local.clickhouse_device_name
volume_id = aws_ebs_volume.clickhouse_data_volume.id
instance_id = aws_instance.clickhouse_server_prod_tier1.id
force_detach = true
Expand Down

0 comments on commit df59b9f

Please sign in to comment.