You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[S3 Bucket Public Access Block](https://www.terraform.io/docs/providers/aws/r/s3_bucket_public_access_block.html)
9
13
10
14
These features of S3 bucket configurations are supported:
11
15
@@ -23,6 +27,10 @@ These features of S3 bucket configurations are supported:
23
27
24
28
Only Terraform 0.12 is supported.
25
29
30
+
## Module Development
31
+
32
+
Please review the [repo-setup](repo-setup.md) documentation related to local environment setup before modifying this repo.
33
+
26
34
## Usage
27
35
28
36
### Private bucket with versioning enabled
@@ -77,30 +85,40 @@ module "s3_bucket" {
77
85
*[Cross-Region Replication](https://github.com/terraform-aws-modules/terraform-aws-s3-bucket/tree/master/examples/s3-replication) - S3 bucket with Cross-Region Replication (CRR) enabled
78
86
79
87
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
88
+
## Providers
89
+
90
+
| Name | Version |
91
+
|------|---------|
92
+
| aws | n/a |
93
+
80
94
## Inputs
81
95
82
96
| Name | Description | Type | Default | Required |
83
-
|------|-------------|:----:|:-----:|:-----:|
84
-
| acceleration\_status | (Optional) Sets the accelerate configuration of an existing bucket. Can be Enabled or Suspended. | string |`"null"`| no |
85
-
| acl | (Optional) The canned ACL to apply. Defaults to 'private'. | string |`"private"`| no |
86
-
| attach\_elb\_log\_delivery\_policy | Controls if S3 bucket should have ELB log delivery policy attached | bool |`"false"`| no |
87
-
| attach\_policy | Controls if S3 bucket should have bucket policy attached (set to `true` to use value of `policy` as bucket policy) | bool |`"false"`| no |
88
-
| bucket | (Optional, Forces new resource) The name of the bucket. If omitted, Terraform will assign a random, unique name. | string |`"null"`| no |
89
-
| bucket\_prefix | (Optional, Forces new resource) Creates a unique bucket name beginning with the specified prefix. Conflicts with bucket. | string |`"null"`| no |
90
-
| cors\_rule | Map containing a rule of Cross-Origin Resource Sharing. | any |`{}`| no |
91
-
| create\_bucket | Controls if S3 bucket should be created | bool |`"true"`| no |
92
-
| force\_destroy | (Optional, Default:false ) A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable. | bool |`"false"`| no |
93
-
| lifecycle\_rule | List of maps containing configuration of object lifecycle management. | any |`[]`| no |
| object\_lock\_configuration | Map containing S3 object locking configuration. | any |`{}`| no |
96
-
| policy | (Optional) A valid bucket policy JSON document. Note that if the policy document is not specific enough (but still valid), Terraform may view the policy as constantly changing in a terraform plan. In this case, please make sure you use the verbose/specific version of the policy. For more information about building AWS IAM policy documents with Terraform, see the AWS IAM Policy Document Guide. | string |`"null"`| no |
97
-
| region | (Optional) If specified, the AWS region this bucket should reside in. Otherwise, the region used by the callee. | string |`"null"`| no |
98
-
| replication\_configuration | Map containing cross-region replication configuration. | any |`{}`| no |
99
-
| request\_payer | (Optional) Specifies who should bear the cost of Amazon S3 data transfer. Can be either BucketOwner or Requester. By default, the owner of the S3 bucket would incur the costs of any data transfer. See Requester Pays Buckets developer guide for more information. | string |`"null"`| no |
100
-
| server\_side\_encryption\_configuration | Map containing server-side encryption configuration. | any |`{}`| no |
101
-
| tags | (Optional) A mapping of tags to assign to the bucket. | map(string) |`{}`| no |
| website | Map containing static web-site hosting or redirect configuration. | map(string) |`{}`| no |
97
+
|------|-------------|------|---------|:-----:|
98
+
| acceleration\_status | (Optional) Sets the accelerate configuration of an existing bucket. Can be Enabled or Suspended. |`string`| n/a | yes |
99
+
| acl | (Optional) The canned ACL to apply. Defaults to 'private'. |`string`|`"private"`| no |
100
+
| attach\_elb\_log\_delivery\_policy | Controls if S3 bucket should have ELB log delivery policy attached |`bool`|`false`| no |
101
+
| attach\_policy | Controls if S3 bucket should have bucket policy attached (set to `true` to use value of `policy` as bucket policy) |`bool`|`false`| no |
102
+
| block\_public\_acls | (Optional) Whether Amazon S3 should block public ACLs for this bucket. |`bool`|`false`| no |
103
+
| block\_public\_policy | (Optional) Whether Amazon S3 should block public bucket policies for this bucket. |`bool`|`false`| no |
104
+
| bucket | (Optional, Forces new resource) The name of the bucket. If omitted, Terraform will assign a random, unique name. |`string`| n/a | yes |
105
+
| bucket\_prefix | (Optional, Forces new resource) Creates a unique bucket name beginning with the specified prefix. Conflicts with bucket. |`string`| n/a | yes |
106
+
| cors\_rule | Map containing a rule of Cross-Origin Resource Sharing. |`any`|`{}`| no |
107
+
| create\_bucket | Controls if S3 bucket should be created |`bool`|`true`| no |
108
+
| force\_destroy | (Optional, Default:false ) A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable. |`bool`|`false`| no |
109
+
| ignore\_public\_acls | (Optional) Whether Amazon S3 should ignore public ACLs for this bucket. |`bool`|`false`| no |
110
+
| lifecycle\_rule | List of maps containing configuration of object lifecycle management. |`any`|`[]`| no |
| policy | (Optional) A valid bucket policy JSON document. Note that if the policy document is not specific enough (but still valid), Terraform may view the policy as constantly changing in a terraform plan. In this case, please make sure you use the verbose/specific version of the policy. For more information about building AWS IAM policy documents with Terraform, see the AWS IAM Policy Document Guide. |`string`| n/a | yes |
114
+
| region | (Optional) If specified, the AWS region this bucket should reside in. Otherwise, the region used by the callee. |`string`| n/a | yes |
| request\_payer | (Optional) Specifies who should bear the cost of Amazon S3 data transfer. Can be either BucketOwner or Requester. By default, the owner of the S3 bucket would incur the costs of any data transfer. See Requester Pays Buckets developer guide for more information. |`string`| n/a | yes |
117
+
| restrict\_public\_buckets | (Optional) Whether Amazon S3 should restrict public bucket policies for this bucket. |`bool`|`false`| no |
| tags | (Optional) A mapping of tags to assign to the bucket. |`map(string)`|`{}`| no |
120
+
| versioning | Map containing versioning configuration. |`map(string)`|`{}`| no |
121
+
| website | Map containing static web-site hosting or redirect configuration. |`map(string)`|`{}`| no |
104
122
105
123
## Outputs
106
124
@@ -119,7 +137,7 @@ module "s3_bucket" {
119
137
120
138
## Authors
121
139
122
-
Module managed by [Anton Babenko](https://github.com/antonbabenko).
140
+
Module started from a fork of [terraform-aws-modules/terraform-aws-s3-bucket](terraform-aws-modules/terraform-aws-s3-bucket) by [Anton Babenko](https://github.com/antonbabenko).
This repo is utilizing git hooks and [pre-commit](https://pre-commit.com/) to run some checks and automate readme documentation prior to committing to git
Install the git hook for you local environment to run the configured `pre-commit` actions automatically on `git commit`
11
+
```bash
12
+
pre-commit install
13
+
```
14
+
15
+
If you want to run all the pre-commit configured checks without doing a commit.
16
+
```bash
17
+
pre-commit run --all-files
18
+
```
19
+
20
+
### Firewall Note
21
+
If you are working from a location that restricts outgoing requests on non-standard ports. Note that pre-commit pulls dependent github repos via port `9418`
0 commit comments