Skip to content

Commit 76dbdf6

Browse files
committed
retain instance for testing
1 parent 9590643 commit 76dbdf6

File tree

1 file changed

+4
-0
lines changed
  • terraform/python/ec2/default

1 file changed

+4
-0
lines changed

terraform/python/ec2/default/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ resource "aws_instance" "main_service_instance" {
8989
http_tokens = "required"
9090
}
9191

92+
lifecycle {
93+
prevent_destroy = true
94+
}
95+
9296
tags = {
9397
Name = "main-service-${var.test_id}"
9498
}

0 commit comments

Comments
 (0)