How do you stop public S3 buckets?
BeginnerProductionSecurity, Secrets and Access
Answer
Defense in depth: the module always creates aws_s3_bucket_public_access_block with all four flags true, account-level Block Public Access in the baseline, an SCP denying s3:PutBucketPublicAccessBlock changes and a Checkov/OPA check in CI. Exceptions (static websites) are explicit and approved.
More on Security, Secrets and Access
How do you avoid hardcoded credentials in Terraform?BeginnerIs reading a secret with a data source safe?IntermediateHow do ephemeral resources and write-only arguments keep secrets out of state?AdvancedWhat is the better pattern for RDS master passwords?BeginnerHow do you scope IAM for the Terraform deploy role?IntermediateWhat are dynamic provider credentials in HCP Terraform?Intermediate