File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ module "ec2" {
145
145
instance_type = " t2.nano"
146
146
monitoring = false
147
147
tenancy = " default"
148
+ hibernation = false
148
149
149
150
# Networking
150
151
vpc_security_group_ids_list = [module . ssh . security_group_ids , module . http-https . security_group_ids ]
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ resource "aws_instance" "default" {
65
65
source_dest_check = var. source_dest_check
66
66
ipv6_address_count = var. ipv6_address_count
67
67
ipv6_addresses = var. ipv6_addresses
68
+ hibernation = var. hibernation
68
69
69
70
dynamic "root_block_device" {
70
71
for_each = var. root_block_device
Original file line number Diff line number Diff line change @@ -334,3 +334,9 @@ variable "metadata_http_put_response_hop_limit" {
334
334
default = 2
335
335
description = " The desired HTTP PUT response hop limit (between 1 and 64) for instance metadata requests."
336
336
}
337
+
338
+ variable "hibernation" {
339
+ type = bool
340
+ default = false
341
+ description = " hibernate an instance, Amazon EC2 signals the operating system to perform hibernation."
342
+ }
You can’t perform that action at this time.
0 commit comments