Teraform Unclassifier is an automatic solution for removing classified and sensitive data from Terraform state files
Terraform state files sometimes contain "classified" or sensitive information like certificates and secrets. This makes the state files sensitive and preventing from sharing them. Terraform Unclassifier was created to allow TF users to share their state files with confidence, and without worrying about sensitive data being exposed. Terraform Unclassifier automatically scans TF state files and removes sensitive data.
Terraform Unclassifier is easy to use; in order to "unclassify" your TFstate files you'll have to follow these steps:
- Click
.
- In Select Template, click Next (no need to make a selection)
- In Parameters, insert the name of the S3 Bucket which stores the classified .tfstate files, InputS3Bucket, then click Next
- In Options page, click Next (no need to make any selections)
- In Review page, select the following options:
I acknowledge that AWS CloudFormation might create IAM resources with custom names.
- Click Create Stack
You can control terraform-unclassifier with these parameters:
Parameter | Description | Optional/Mandatory |
---|---|---|
INPUT_BUCKET | Existing S3 Bucket containing sensitive terraform files | Mandatory |
OUTPUT_BUCKET | S3 Bucket you wish Terraform-unclassifier to write the newunclassified state file | Mandatory |
CLASSIFIED_TYPES | Terraform resources to remove (unclassify). Multi resources split by "," Default value is aws_acm_certificate |
Optional |
OUTPUT_DELIMITER | Defines the output delimiter in Output S3 Bucket | Optional |
TERRAFORM_STATE_SUFFIX | Defines terraform state files sufix Default value is .tfstate |
Optional |
HARD_REFRESH | Unclassifing all .tfstate files (even if if they already unclassified) Default value is false |
Optional |
- 0.11.X
- 0.12.X
- 0.13.X
- 0.14.X
Apache 2.0