Difference between revisions of "Aws s3 bucket public access block"
Jump to navigation
Jump to search
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | aws_s3_bucket_public_access_block | + | * https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_public_access_block |
+ | <code>aws_s3_bucket_public_access_block</code> | ||
+ | == Official example == | ||
+ | resource "aws_s3_bucket" "example" { | ||
+ | bucket = "example" | ||
+ | } | ||
+ | |||
+ | resource "aws_s3_bucket_public_access_block" "example" { | ||
+ | bucket = aws_s3_bucket.example.id | ||
+ | |||
+ | [[block_public_acls]] = true | ||
+ | [[block_public_policy]] = true | ||
+ | [[ignore_public_acls]] = true | ||
+ | [[restrict_public_buckets]] = true | ||
+ | } | ||
+ | == Related == | ||
+ | * [[Blocking public access to your Amazon S3 storage]] | ||
== See also == | == See also == |
Latest revision as of 03:33, 6 June 2024
aws_s3_bucket_public_access_block
Official example[edit]
resource "aws_s3_bucket" "example" { bucket = "example" } resource "aws_s3_bucket_public_access_block" "example" { bucket = aws_s3_bucket.example.id block_public_acls = true block_public_policy = true ignore_public_acls = true restrict_public_buckets = true }
Related[edit]
See also[edit]
- Terraform S3 resources:
aws_s3_bucket, aws_s3_object, aws_s3_bucket_policy, aws_s3_bucket_acl, aws_s3_bucket_website_configuration, aws_s3_bucket cors_configuration, aws_s3_account_public_access_block
, Terraform module: s3-bucket,aws_s3_bucket_versioning, aws_s3_bucket_server_side_encryption_configuration, aws_s3_bucket_logging
Advertising: