Skip to content

Commit

Permalink
set null default for vars
Browse files Browse the repository at this point in the history
  • Loading branch information
sarjumulmi committed Aug 14, 2023
1 parent 22c4ab9 commit 0bc6649
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ variable "existing_cloudtrail_bucket_name" {
variable "aws_management_account_id" {
description = "Account id of AWS management account."
type = string
default = null
validation {
condition = var.aws_management_account_id == null || can(regex("^[0-9]{12}$", var.aws_management_account_id))
error_message = "Account id must be 12 digits."
Expand All @@ -81,6 +82,7 @@ variable "aws_management_account_id" {
variable "existing_cloudtrail_log_bucket_account_id" {
description = "Account id of AWS account where the existing cloudtrail log bucket is created. This is where the new SQS queue will be created"
type = string
default = null
validation {
condition = var.existing_cloudtrail_log_bucket_account_id == null || can(regex("^[0-9]{12}$", var.existing_cloudtrail_log_bucket_account_id))
error_message = "Account id must be 12 digits."
Expand Down

0 comments on commit 0bc6649

Please sign in to comment.