diff --git a/entrypoint.sh b/entrypoint.sh index d3aa534..a407158 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,4 +7,4 @@ echo "LS: $(ls)" echo "TF_CONTENT: $(TF_CONTENT)" cd /tmp terraform init -TF_VAR_AWS_REGION=$AWS_REGION terraform apply \ No newline at end of file +TF_VAR_AWS_REGION=$AWS_REGION TF_VAR_CONFIG_PATH=$CONFIG terraform apply \ No newline at end of file diff --git a/tailcall.tf b/tailcall.tf index 140fee2..d627b88 100644 --- a/tailcall.tf +++ b/tailcall.tf @@ -15,6 +15,10 @@ variable "AWS_REGION" { type = string } +variable "CONFIG_PATH" { + type = string +} + provider "aws" { region = var.AWS_REGION } data "aws_iam_policy_document" "assume_role" { @@ -53,8 +57,8 @@ resource "local_sensitive_file" "bootstrap" { } resource "local_sensitive_file" "config" { - content_base64 = filebase64("config/config.graphql") - filename = "config/config.graphql" + content_base64 = filebase64(var.CONFIG_PATH) + filename = var.CONFIG_PATH } data "archive_file" "tailcall" {