Skip to content

Commit 55ed759

Browse files
jebbensbryantbiggs
andauthored
feat: Add unique tags to EBS block devices (#327)
Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
1 parent 33c2707 commit 55ed759

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ No modules.
210210
| <a name="input_create_spot_instance"></a> [create\_spot\_instance](#input\_create\_spot\_instance) | Depicts if the instance is a spot instance | `bool` | `false` | no |
211211
| <a name="input_disable_api_stop"></a> [disable\_api\_stop](#input\_disable\_api\_stop) | If true, enables EC2 Instance Stop Protection. | `bool` | `null` | no |
212212
| <a name="input_disable_api_termination"></a> [disable\_api\_termination](#input\_disable\_api\_termination) | If true, enables EC2 Instance Termination Protection | `bool` | `null` | no |
213-
| <a name="input_ebs_block_device"></a> [ebs\_block\_device](#input\_ebs\_block\_device) | Additional EBS block devices to attach to the instance | `list(map(string))` | `[]` | no |
213+
| <a name="input_ebs_block_device"></a> [ebs\_block\_device](#input\_ebs\_block\_device) | Additional EBS block devices to attach to the instance | `list(any)` | `[]` | no |
214214
| <a name="input_ebs_optimized"></a> [ebs\_optimized](#input\_ebs\_optimized) | If true, the launched EC2 instance will be EBS-optimized | `bool` | `null` | no |
215215
| <a name="input_enable_volume_tags"></a> [enable\_volume\_tags](#input\_enable\_volume\_tags) | Whether to enable volume tags (if enabled it conflicts with root\_block\_device tags) | `bool` | `true` | no |
216216
| <a name="input_enclave_options_enabled"></a> [enclave\_options\_enabled](#input\_enclave\_options\_enabled) | Whether Nitro Enclaves will be enabled on the instance. Defaults to `false` | `bool` | `null` | no |

examples/complete/main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ module "ec2_complete" {
7878
throughput = 200
7979
encrypted = true
8080
kms_key_id = aws_kms_key.this.arn
81+
tags = {
82+
MountPoint = "/mnt/data"
83+
}
8184
}
8285
]
8386

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ resource "aws_instance" "this" {
8787
volume_size = lookup(ebs_block_device.value, "volume_size", null)
8888
volume_type = lookup(ebs_block_device.value, "volume_type", null)
8989
throughput = lookup(ebs_block_device.value, "throughput", null)
90+
tags = lookup(ebs_block_device.value, "tags", null)
9091
}
9192
}
9293

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ variable "disable_api_termination" {
6060

6161
variable "ebs_block_device" {
6262
description = "Additional EBS block devices to attach to the instance"
63-
type = list(map(string))
63+
type = list(any)
6464
default = []
6565
}
6666

0 commit comments

Comments
 (0)