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" {
145145 instance_type = " t2.nano"
146146 monitoring = false
147147 tenancy = " default"
148+ hibernation = false
148149
149150 # Networking
150151 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" {
6565 source_dest_check = var. source_dest_check
6666 ipv6_address_count = var. ipv6_address_count
6767 ipv6_addresses = var. ipv6_addresses
68+ hibernation = var. hibernation
6869
6970 dynamic "root_block_device" {
7071 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" {
334334 default = 2
335335 description = " The desired HTTP PUT response hop limit (between 1 and 64) for instance metadata requests."
336336}
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