File tree 4 files changed +9
-2
lines changed
4 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
- 0.18.2
1
+ 0.19.1
Original file line number Diff line number Diff line change 5
5
| ------| -------------| :----:| :-----:| :-----:|
6
6
| bucket\_ name | | string | n/a | yes |
7
7
| bucket\_ policy | | string | ` "" ` | no |
8
+ | enable\_ versioning | Keep old versions of overwritten S3 objects. | bool | ` true ` | no |
8
9
| env | | string | n/a | yes |
9
10
| owner | | string | n/a | yes |
10
11
| project | | string | n/a | yes |
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ resource "aws_s3_bucket" "bucket" {
15
15
policy = " ${ data . aws_iam_policy_document . bucket_policy . json } "
16
16
17
17
versioning {
18
- enabled = true
18
+ enabled = var . enable_versioning
19
19
}
20
20
21
21
# TODO
Original file line number Diff line number Diff line change @@ -22,3 +22,9 @@ variable "service" {
22
22
variable "owner" {
23
23
type = " string"
24
24
}
25
+
26
+ variable "enable_versioning" {
27
+ type = bool
28
+ description = " Keep old versions of overwritten S3 objects."
29
+ default = true
30
+ }
You can’t perform that action at this time.
0 commit comments