Skip to content

Commit

Permalink
feat: terraform format
Browse files Browse the repository at this point in the history
  • Loading branch information
anasgrt committed Dec 11, 2023
1 parent 9f4a049 commit 9d4a51c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dynamodb.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Terraform State dynamodb table
resource "aws_dynamodb_table" "kabisa_terraform_lockfiles_dynamodb_table" {
count = var.dynamodb_tables_creation ? 1 : 0
count = var.dynamodb_tables_creation ? 1 : 0
name = var.dynamodb_tables_name
read_capacity = 5
write_capacity = 5
Expand Down
2 changes: 1 addition & 1 deletion s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ resource "aws_s3_bucket" "kabisa_terraform_statefiles_bucket" {
}

resource "aws_s3_bucket_acl" "s3_bucket_private_acl" {
count = var.s3_bucket_state_file_creation ? 1 : 0
count = var.s3_bucket_state_file_creation ? 1 : 0
bucket = aws_s3_bucket.kabisa_terraform_statefiles_bucket[count.index].id
acl = "private"
depends_on = [aws_s3_bucket_ownership_controls.s3_bucket_acl_ownership]
Expand Down
16 changes: 8 additions & 8 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -224,26 +224,26 @@ variable "cloudwatch_encryption_enabled" {
}

variable "s3_bucket_state_file_creation" {
type = bool
default = false
type = bool
default = false
description = "Whether to create S3 bucket in the AWS Account to store terraform state file"
}

variable "s3_bucket_state_file_name" {
type = string
default = ""
type = string
default = ""
description = "The S3 bucket name which store the terraform state file"
}

variable "dynamodb_tables_creation" {
type = bool
default = false
type = bool
default = false
description = "Whether to create dynamodb tables for terraform state file"
}

variable "dynamodb_tables_name" {
type = string
default = ""
type = string
default = ""
description = "The dynamodb tables name"
}

0 comments on commit 9d4a51c

Please sign in to comment.