Skip to content

Conversation

@gvzdv
Copy link

@gvzdv gvzdv commented Dec 2, 2025

Add prevent_destroy input parameters for all major AWS resources managed by this action, providing protection against accidental infrastructure deletion.

Changes

New Input Parameters (all default to true):

  • tf_state_bucket_prevent_destroy - Protects S3 state bucket
  • aws_ec2_prevent_destroy - Protects EC2 instance
  • aws_vpc_prevent_destroy - Protects VPC infrastructure
  • aws_r53_cert_prevent_destroy - Protects Route53 certificates
  • aws_elb_prevent_destroy - Protects load balancer
  • aws_efs_prevent_destroy - Protects EFS file system
  • aws_rds_db_prevent_destroy - Protects RDS database

Files Modified:

  • action.yaml - Added 7 new input parameters and passed them through to the underlying action
  • README.md - Updated input documentation tables and added new "Protecting Resources with Prevent Destroy" section

Behavior

All resources are now protected by default.

@mickmcgrath13
Copy link
Contributor

great start on the idea! it'll need a corresponding commons effort to actually modify the IaC:
https://github.com/bitovi/github-actions-commons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants