From 8773893dbd4e350dff776660794205f95fc3c20e Mon Sep 17 00:00:00 2001 From: Lucas Gabriel Vuotto Date: Tue, 1 Jul 2025 12:52:23 +0000 Subject: [PATCH] fix: Make root_block_device.tags default to null Fixes #440. Without it, if root_block_device is defined without a tags key, and if enable_volume_tags isn't set to false, a conflict is created because main.tf:219 defines volume_tags to be at least { Name = ... } and the root block device gets tags as {}. Making the default null works around that. --- README.md | 2 +- variables.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cf5ee52..bb8d90a 100644 --- a/README.md +++ b/README.md @@ -255,7 +255,7 @@ No modules. | [private\_ip](#input\_private\_ip) | Private IP address to associate with the instance in a VPC | `string` | `null` | no | | [putin\_khuylo](#input\_putin\_khuylo) | Do you agree that Putin doesn't respect Ukrainian sovereignty and territorial integrity? More info: https://en.wikipedia.org/wiki/Putin_khuylo! | `bool` | `true` | no | | [region](#input\_region) | Region where the resource(s) will be managed. Defaults to the Region set in the provider configuration | `string` | `null` | no | -| [root\_block\_device](#input\_root\_block\_device) | Customize details about the root block device of the instance. See Block Devices below for details |
object({
delete_on_termination = optional(bool)
encrypted = optional(bool)
iops = optional(number)
kms_key_id = optional(string)
tags = optional(map(string), {})
throughput = optional(number)
size = optional(number)
type = optional(string)
})
| `null` | no | +| [root\_block\_device](#input\_root\_block\_device) | Customize details about the root block device of the instance. See Block Devices below for details |
object({
delete_on_termination = optional(bool)
encrypted = optional(bool)
iops = optional(number)
kms_key_id = optional(string)
tags = optional(map(string))
throughput = optional(number)
size = optional(number)
type = optional(string)
})
| `null` | no | | [secondary\_private\_ips](#input\_secondary\_private\_ips) | A list of secondary private IPv4 addresses to assign to the instance's primary network interface (eth0) in a VPC. Can only be assigned to the primary network interface (eth0) attached at instance creation, not a pre-existing network interface i.e. referenced in a `network_interface block` | `list(string)` | `null` | no | | [security\_group\_description](#input\_security\_group\_description) | Description of the security group | `string` | `null` | no | | [security\_group\_egress\_rules](#input\_security\_group\_egress\_rules) | Egress rules to add to the security group |
map(object({
cidr_ipv4 = optional(string)
cidr_ipv6 = optional(string)
description = optional(string)
from_port = optional(number)
ip_protocol = optional(string, "tcp")
prefix_list_id = optional(string)
referenced_security_group_id = optional(string)
tags = optional(map(string), {})
to_port = optional(number)
}))
|
{
"ipv4_default": {
"cidr_ipv4": "0.0.0.0/0",
"description": "Allow all IPv4 traffic",
"ip_protocol": "-1"
},
"ipv6_default": {
"cidr_ipv6": "::/0",
"description": "Allow all IPv6 traffic",
"ip_protocol": "-1"
}
}
| no | diff --git a/variables.tf b/variables.tf index f354c2c..a95ae99 100644 --- a/variables.tf +++ b/variables.tf @@ -278,7 +278,7 @@ variable "root_block_device" { encrypted = optional(bool) iops = optional(number) kms_key_id = optional(string) - tags = optional(map(string), {}) + tags = optional(map(string)) throughput = optional(number) size = optional(number) type = optional(string)