diff --git a/main.tf b/main.tf index d7547c5..9692b35 100644 --- a/main.tf +++ b/main.tf @@ -8,7 +8,7 @@ resource "aws_key_pair" "auth" { key_name = coalesce(var.key_name, module.airflow_labels.id) - public_key = var.public_key + public_key = coalesce(var.public_key, file(var.public_key_path)) } # -------------------------------------------