Resource

dcloud_bucket_public_access_block

Block Public Access of a bucket. Every bucket starts with all four flags on; destroying this resource turns them all on again.

Example Usage

resource "dcloud_bucket_public_access_block" "site" {
  bucket                  = dcloud_bucket.site.id
  block_public_acls       = true
  ignore_public_acls      = true
  block_public_policy     = false
  restrict_public_buckets = false
}

Schema

Required

  • block_public_acls (Boolean) Refuse public ACLs (Deutsche Cloud has no ACLs; stored for S3 tools)
  • block_public_policy (Boolean) Refuse a bucket policy that would make the bucket public
  • bucket (String) The id of the parent resource ({name} in the path). Changing it replaces the resource.
  • ignore_public_acls (Boolean) Ignore public ACLs (Deutsche Cloud has no ACLs; stored for S3 tools)
  • restrict_public_buckets (Boolean) Ignore the public statements of the bucket policy for anyone outside the organization

Read-Only

  • id (String) The resource's id.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

terraform import dcloud_bucket_public_access_block.site <bucket-name>

Generated from the provider's schema.