Skip to content

Commit 7e35e03

Browse files
authored
Update: A better workaround to this problem is to use the S3 backend type in Terraform
1 parent d68b25a commit 7e35e03

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

terraform-redact-iam-secrets.sh

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
# This script replaces AWS IAM Secret Keys and IAM SES SMTP Passwords with "REDACTED"
44
# in Terraform state files so they can be safely committed to git without exposing credentials.
55

6+
# Update:
7+
# A better workaround to this problem is to use the S3 backend type in Terraform to avoid
8+
# committing your state files to git: https://www.terraform.io/docs/backends/types/s3.html
9+
610
# Usage:
711
# Run from dir that contains environment subfolders. Requires Terraform and jq.
812
# Assumes three environments exist within subfolders: dev, staging, production.

0 commit comments

Comments
 (0)