Resource: aws_s3_account_public_access_block

Manages S3 account-level Public Access Block configuration. For more information about these settings, see the AWS S3 Block Public Access documentation.

Example Usage

resource "aws_s3_account_public_access_block" "example" {
  block_public_acls   = true
  block_public_policy = true
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import aws_s3_account_public_access_block using the AWS account ID. For example:

import {
  to = aws_s3_account_public_access_block.example
  id = "123456789012"
}

Using terraform import, import aws_s3_account_public_access_block using the AWS account ID. For example:

% terraform import aws_s3_account_public_access_block.example 123456789012