Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions modules/scenarios/manual_sg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ resource "aws_instance" "webserver" {
associate_public_ip_address = true
vpc_security_group_ids = [aws_security_group.instance_sg.id]

# Root volume will be deleted on termination (default behavior)
# This ensures clean state on instance replacement
# Root volume will be preserved on termination
# This prevents data loss during instance replacement
root_block_device {
delete_on_termination = true
delete_on_termination = false
}

tags = {
Expand All @@ -157,10 +157,10 @@ resource "aws_instance" "app_server" {
associate_public_ip_address = true
vpc_security_group_ids = [aws_security_group.instance_sg.id]

# Root volume will be deleted on termination (default behavior)
# This ensures clean state on instance replacement
# Root volume will be preserved on termination
# This prevents data loss during instance replacement
root_block_device {
delete_on_termination = true
delete_on_termination = false
}

tags = {
Expand Down