File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1
1
# AWS EC2 Instance Terraform module
2
2
3
+ ## Grouper fork
4
+ Forked from
5
+ [ terraform-aws-modules/terraform-aws-ec2-instance] ( https://github.com/Element3Health/terraform-aws-ec2-instance )
6
+
7
+ Only to add lifecycle hoook of create_before_destroy to the instance resource.
8
+
9
+
3
10
Terraform module which creates an EC2 instance on AWS.
4
11
5
12
[ ![ SWUbanner] ( https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg )] ( https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md )
Original file line number Diff line number Diff line change @@ -190,6 +190,10 @@ resource "aws_instance" "this" {
190
190
191
191
tags = merge ({ " Name" = var.name }, var. instance_tags , var. tags )
192
192
volume_tags = var. enable_volume_tags ? merge ({ " Name" = var.name }, var. volume_tags ) : null
193
+
194
+ lifecycle {
195
+ create_before_destroy = true
196
+ }
193
197
}
194
198
195
199
# ###############################################################################
You can’t perform that action at this time.
0 commit comments