Skip to content

Commit 383dc18

Browse files
authored
Merge pull request #18 from cruxstack/dev
fix: use optional defaults for instance_config
2 parents e5a1ba7 + 23dc93d commit 383dc18

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

main.tf

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,7 @@ locals {
2121

2222
is_teleport_and_logs_bucket_same = local.artifacts_bucket_name == local.logs_bucket_name
2323

24-
instance_config = {
25-
auth = merge({ sizes = ["t3.micro", "t3a.micro"], count = 1 }, lookup(var.instance_config, "auth", {}))
26-
node = merge({ sizes = ["t3.micro", "t3a.micro"], count = 1 }, lookup(var.instance_config, "node", {}))
27-
proxy = merge({ sizes = ["t3.micro", "t3a.micro"], count = 1 }, lookup(var.instance_config, "proxy", {}))
28-
}
29-
}
24+
instance_config = var.instance_config
3025

3126
data "aws_caller_identity" "current" {
3227
count = module.this.enabled && var.aws_account_id == "" ? 1 : 0

0 commit comments

Comments
 (0)