1
- variable "dynamodb_table_name" {
2
- description = " Name of the DynamoDB Table for locking Terraform state."
3
- default = " terraform-state-lock"
1
+ variable "account_alias" {
2
+ description = " The desired AWS account alias."
4
3
type = string
5
4
}
6
5
7
- variable "dynamodb_table_tags " {
8
- description = " Tags of the DynamoDB Table for locking Terraform state. "
9
- default = {}
10
- type = map ( string )
6
+ variable "bucket_key_enabled " {
7
+ type = bool
8
+ default = false
9
+ description = " Whether or not to use Amazon S3 Bucket Keys for SSE-KMS. "
11
10
}
12
11
13
- variable "region" {
14
- description = " AWS region."
12
+ variable "bucket_purpose" {
13
+ description = " Name to identify the bucket's purpose"
14
+ default = " tf-state"
15
15
type = string
16
16
}
17
17
18
- variable "account_alias" {
19
- description = " The desired AWS account alias."
20
- type = string
18
+ variable "dynamodb_point_in_time_recovery" {
19
+ type = bool
20
+ default = false
21
+ description = " Point-in-time recovery options"
21
22
}
22
23
23
- variable "log_retention " {
24
- description = " Log retention of access logs of state bucket ."
25
- default = 90
26
- type = number
24
+ variable "dynamodb_table_name " {
25
+ description = " Name of the DynamoDB Table for locking Terraform state ."
26
+ default = " terraform-state-lock "
27
+ type = string
27
28
}
28
29
29
- variable "bucket_purpose " {
30
- description = " Name to identify the bucket's purpose "
31
- default = " tf-state "
32
- type = string
30
+ variable "enable_s3_public_access_block " {
31
+ description = " Bool for toggling whether the s3 public access block resource should be enabled. "
32
+ type = bool
33
+ default = true
33
34
}
34
35
35
- variable "log_name" {
36
- description = " Log name (for backwards compatibility this can be modified to logs)"
37
- default = " log"
36
+ variable "kms_master_key_id" {
38
37
type = string
38
+ default = " "
39
+ description = " The AWS KMS master key ID used for the SSE-KMS encryption of the state bucket."
39
40
}
40
41
41
42
variable "log_bucket_versioning" {
@@ -48,28 +49,16 @@ variable "log_bucket_versioning" {
48
49
}
49
50
}
50
51
51
- variable "state_bucket_tags" {
52
- type = map (string )
53
- default = {}
54
- description = " Tags to associate with the bucket storing the Terraform state files"
55
- }
56
-
57
- variable "log_bucket_tags" {
58
- type = map (string )
59
- default = {}
60
- description = " Tags to associate with the bucket storing the Terraform state bucket logs"
61
- }
62
-
63
- variable "enable_s3_public_access_block" {
64
- description = " Bool for toggling whether the s3 public access block resource should be enabled."
65
- type = bool
66
- default = true
52
+ variable "log_name" {
53
+ description = " Log name (for backwards compatibility this can be modified to logs)"
54
+ default = " log"
55
+ type = string
67
56
}
68
57
69
- variable "dynamodb_point_in_time_recovery " {
70
- type = bool
71
- default = false
72
- description = " Point-in-time recovery options "
58
+ variable "log_retention " {
59
+ description = " Log retention of access logs of state bucket. "
60
+ default = 90
61
+ type = number
73
62
}
74
63
75
64
variable "manage_account_alias" {
@@ -78,14 +67,7 @@ variable "manage_account_alias" {
78
67
description = " Manage the account alias as a resource. Set to 'false' if this behavior is not desired."
79
68
}
80
69
81
- variable "kms_master_key_id" {
70
+ variable "region" {
71
+ description = " AWS region."
82
72
type = string
83
- default = " "
84
- description = " The AWS KMS master key ID used for the SSE-KMS encryption of the state bucket."
85
- }
86
-
87
- variable "bucket_key_enabled" {
88
- type = bool
89
- default = false
90
- description = " Whether or not to use Amazon S3 Bucket Keys for SSE-KMS."
91
73
}
0 commit comments