library
turbot/aws
Get Involved
Version
Pipeline: Put S3 Public Access Block
Creates or modifies the PublicAccessBlock configuration for an Amazon S3 bucket.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run aws.pipeline.put_s3_bucket_public_access_block \ --arg 'region=<string>' \ --arg 'bucket=<string>' \ --arg 'block_public_acls=<bool>' \ --arg 'ignore_public_acls=<bool>' \ --arg 'block_public_policy=<bool>' \ --arg 'restrict_public_buckets=<bool>'
Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = aws.pipeline.put_s3_bucket_public_access_block args = { region = <string> bucket = <string> block_public_acls = <bool> ignore_public_acls = <bool> block_public_policy = <bool> restrict_public_buckets = <bool> }}
Params
Name | Type | Required | Description | Default |
---|---|---|---|---|
region | string | Yes | The name of the Region. | - |
conn | connection.aws | Yes | Name of AWS connection to use. If not provided, the default AWS connection will be used. | connection.aws.default |
bucket | string | Yes | The name of the S3 bucket. | - |
block_public_acls | bool | Yes | Specifies whether Amazon S3 should block public access control lists (ACLs) for this bucket and objects in this bucket. | - |
ignore_public_acls | bool | Yes | Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket. | - |
block_public_policy | bool | Yes | Specifies whether Amazon S3 should block public bucket policies for this bucket. | - |
restrict_public_buckets | bool | Yes | Specifies whether Amazon S3 should restrict public bucket policies for this bucket. | - |
Outputs
This pipeline has no outputs.