Skip to content

S3 access points should have block public access settings enabled

This control checks whether an Amazon S3 access point has block public access settings enabled. The control fails if block public access settings aren't enabled for the access point.

How to fix

Resource aws_s3_access_point must exist.

Implementation options

Choose the option that matches how you manage Terraform. All options satisfy this control.

Option 1: Terraform AWS provider resources

If you manage resources directly, configure the relevant Terraform AWS provider resources to meet this control. See docs for the resources involved: aws_s3_access_point.

resource "aws_s3_bucket" "this" {
  bucket        = "example-abc123"
  force_destroy = true
}

resource "aws_s3_access_point" "this" {
  bucket = "example-bucket-abc123"
  name   = "pofix-example-access-point"

  public_access_block_configuration {
    block_public_acls       = true
    block_public_policy     = true
    ignore_public_acls      = true
    restrict_public_buckets = true
  }
}
Which option should I choose?
  • Compliance.tf module (recommended): controls enforced by default and mapped to frameworks.
  • Open source module (terraform-aws-modules): compatible by design with compliance.tf. Same variable names for an easy, low-change migration path when you are ready.
  • Terraform AWS provider resources: manage Terraform resources directly.

Tool mappings

Use these identifiers to cross-reference this control across tools, reports, and evidence.

  • Compliance.tf (CTF) Control: s3_access_point_restrict_public_access

  • AWS Config Managed Rule: S3_ACCESS_POINT_PUBLIC_ACCESS_BLOCKS

  • Checkov Check: CKV_AWS_392

  • Powerpipe Controls: aws_compliance.control.s3_access_point_restrict_public_access, aws_compliance.control.s3_multi_region_access_point_public_access_blocked