Terraform lifecycle: prevent destroy
(Redirected from Prevent destroy)
Jump to navigation
Jump to search
#Ignore AMI changes resource "aws_instance" "your_instance" { lifecycle { ignore_changes = [ami] prevent_destroy = true } }
Related[edit]
- Terraform best practices
- deletion_protection in aws_db_instance
- enable_deletion_protection in aws_lb
- Terraform resource: aws_s3_versioning
publicly_accessible- AWS AMI
ec2:TerminateInstances deny policy for production
See also[edit]
- Lifecycle, AWS EC2 Instance lifecycle, AWS S3 lifecycle, Container Lifecycle Events, ignore_changes, prevent_destroy, Object Lifecycle Management
- Terraform: Meta-Arguments:
count,depends_on,lifecycle: [ prevent_destroy | ignore_changes ] - Terraform best practices,
helpers/, prevent_destroy - AWS resilence
- GCP resilience,
prevent_destroy (Terraform),--deletion-protection, GKE Backup
Advertising: