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."
43 type = string
54}
65
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. "
1110}
1211
13- variable "region" {
14- description = " AWS region."
12+ variable "bucket_purpose" {
13+ description = " Name to identify the bucket's purpose"
14+ default = " tf-state"
1515 type = string
1616}
1717
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"
2122}
2223
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
2728}
2829
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
3334}
3435
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" {
3837 type = string
38+ default = " "
39+ description = " The AWS KMS master key ID used for the SSE-KMS encryption of the state bucket."
3940}
4041
4142variable "log_bucket_versioning" {
@@ -48,28 +49,16 @@ variable "log_bucket_versioning" {
4849 }
4950}
5051
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
6756}
6857
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
7362}
7463
7564variable "manage_account_alias" {
@@ -78,14 +67,7 @@ variable "manage_account_alias" {
7867 description = " Manage the account alias as a resource. Set to 'false' if this behavior is not desired."
7968}
8069
81- variable "kms_master_key_id" {
70+ variable "region" {
71+ description = " AWS region."
8272 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."
9173}
0 commit comments