File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,12 @@ resource "aws_autoscaling_group" "autoscaling_group" {
2929 ],
3030 local. tags_asg_format ,
3131 )
32+
33+ lifecycle {
34+ ignore_changes = [
35+ load_balancers ,
36+ ]
37+ }
3238}
3339
3440resource "aws_launch_configuration" "launch_configuration" {
Original file line number Diff line number Diff line change @@ -41,6 +41,13 @@ resource "aws_launch_configuration" "launch_configuration" {
4141 iam_instance_profile = aws_iam_instance_profile. instance_profile . name
4242 placement_tenancy = var. tenancy
4343
44+ security_groups = [
45+ module . lc_security_group . security_group_id ,
46+ module . attach_security_group . security_group_id ,
47+ ]
48+
49+ associate_public_ip_address = false
50+
4451 ebs_optimized = var. root_volume_ebs_optimized
4552 root_block_device {
4653 volume_type = var. root_volume_type
You can’t perform that action at this time.
0 commit comments