dcloud s3 bucket-access set-block

Set the four Block Public Access flags (all true on a new bucket)

IAM s3:PutBucketPublicAccessBlockChanges stateAsks before it deletes (-y skips)

blockPublicPolicy refuses a policy that would make the bucket public; restrictPublicBuckets makes the public statements of an existing policy have no effect. Turn both off only for a bucket meant for everyone.

Synopsis

dcloud s3 bucket-access set-block name --block-public-acls blockPublicAcls --ignore-public-acls ignorePublicAcls --block-public-policy blockPublicPolicy --restrict-public-buckets restrictPublicBuckets

Arguments

  • <name>Required

    string

    Also accepted as --name. Constraints: 3-63 chars, /^[a-z0-9][a-z0-9-]*[a-z0-9]$/

Flags

  • --block-public-aclsRequired

    boolean (--block-public-acls / --no-block-public-acls)

    Refuse public ACLs (Deutsche Cloud has no ACLs; stored for S3 tools)

  • --ignore-public-aclsRequired

    boolean (--ignore-public-acls / --no-ignore-public-acls)

    Ignore public ACLs (Deutsche Cloud has no ACLs; stored for S3 tools)

  • --block-public-policyRequired

    boolean (--block-public-policy / --no-block-public-policy)

    Refuse a bucket policy that would make the bucket public

  • --restrict-public-bucketsRequired

    boolean (--restrict-public-buckets / --no-restrict-public-buckets)

    Ignore the public statements of the bucket policy for anyone outside the organization

Example

dcloud s3 bucket-access set-block name --block-public-acls --ignore-public-acls --block-public-policy --restrict-public-buckets

Generated from the API description, the same one the API checks requests against and the CLI is built from.