Skip to content

Commit aec6d24

Browse files
Added types to S3 module variables
1 parent f79978f commit aec6d24

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

modules/s3/variables.tf

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
variable "central_account_resource_name_prefix" {
2+
type = string
23
description = "Central account resource name prefix, e.g. aws-backup-"
34

45
validation {
@@ -8,11 +9,13 @@ variable "central_account_resource_name_prefix" {
89
}
910

1011
variable "kms_key_arn" {
12+
type = string
1113
description = "ARN of KMS key for S3 bucket encryption, if omitted, S3 managed key will be used"
1214
default = ""
1315
}
1416

1517
variable "log_bucket" {
18+
type = string
1619
description = "Enter name of log bucket to enable access logs"
1720
default = ""
1821
}
@@ -23,6 +26,7 @@ variable "force_destroy" {
2326
}
2427

2528
variable "object_ownership" {
29+
type = string
2630
description = "manage S3 bucket ownership controls"
2731
default = "BucketOwnerEnforced"
2832
validation {
@@ -32,27 +36,37 @@ variable "object_ownership" {
3236
}
3337

3438
variable "block_public_acls" {
35-
default = true
39+
type = bool
40+
description = "Block public ACLs on the S3 bucket"
41+
default = true
3642
}
3743

3844
variable "block_public_policy" {
39-
default = true
45+
type = bool
46+
description = "Block public bucket policies on the S3 bucket"
47+
default = true
4048
}
4149

4250
variable "ignore_public_acls" {
43-
default = true
51+
type = bool
52+
description = "Ignore public ACLs on the S3 bucket"
53+
default = true
4454
}
4555

4656
variable "restrict_public_buckets" {
47-
default = true
57+
type = bool
58+
description = "Restrict public bucket policies on the S3 bucket"
59+
default = true
4860
}
4961

5062
variable "bpa_skip_destroy" {
63+
type = bool
5164
description = "Skip destroy of S3 block public access configuration"
5265
default = true
5366
}
5467

5568
variable "versioning" {
69+
type = string
5670
description = "Enable versioning"
5771
default = "Enabled"
5872
validation {

0 commit comments

Comments
 (0)