Add prevent_destroy flags #164
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add
prevent_destroyinput 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 bucketaws_ec2_prevent_destroy- Protects EC2 instanceaws_vpc_prevent_destroy- Protects VPC infrastructureaws_r53_cert_prevent_destroy- Protects Route53 certificatesaws_elb_prevent_destroy- Protects load balanceraws_efs_prevent_destroy- Protects EFS file systemaws_rds_db_prevent_destroy- Protects RDS databaseFiles Modified:
action.yaml- Added 7 new input parameters and passed them through to the underlying actionREADME.md- Updated input documentation tables and added new "Protecting Resources with Prevent Destroy" sectionBehavior
All resources are now protected by default.