Description
This entry lists an S3 bucket declared in Terraform.
Potential impact
Data kept past its retention period can add costs and remain accessible longer than intended.
Remediation
Record the owner and service. Check Block Public Access, encryption, versioning, logging and lifecycle rules.
Examples
The example tags the bucket for the data-platform service in production.
Before
hcl
resource "aws_s3_bucket" "data" {
bucket = "example-data-bucket"
}
After
hcl
resource "aws_s3_bucket" "data" {
bucket = "example-data-bucket"
tags = {
Service = "data-platform"
Environment = "production"
}
}