Skip to content

Commit

Permalink
added domino_cost variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ddl-olsonJD committed Oct 6, 2023
1 parent 8a81594 commit eff7087
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/infra/submodules/storage/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ locals {
arn = aws_s3_bucket.blobs.arn
}
costs = {
count = var.domino_cost.storage_enabled ? 1 : 0
bucket_name = aws_s3_bucket.costs.bucket
id = aws_s3_bucket.costs.id
policy_json = data.aws_iam_policy_document.costs.json
Expand Down
9 changes: 9 additions & 0 deletions modules/infra/submodules/storage/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,12 @@ variable "network_info" {
})
})
}

variable "domino_cost" {
description = "Determines whether to provision domino cost related infrastructures, ie, long term storage"
type = object({
storage_enabled = optional(bool, true)
})

default = {}
}

0 comments on commit eff7087

Please sign in to comment.