diff --git a/Dockerfile b/Dockerfile index f5cc889..3191b77 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ FROM debian:latest COPY entrypoint.sh /entrypoint.sh COPY tailcall.tf /tmp/tailcall.tf COPY config/config.graphql /tmp/config.graphql +COPY config/bootstrap /tmp/bootstrap RUN apt-get update \ && apt-get install -y wget git \ @@ -20,9 +21,5 @@ RUN apt-get update \ tee /etc/apt/sources.list.d/hashicorp.list \ && apt update \ && apt-get install -y terraform \ - && apt-get install -y curl \ - && curl -O https://github.com/tailcallhq/tailcall/releases/download/v0.82.21/tailcall-aws-lambda-bootstrap \ - && chmod +x tailcall-aws-lambda-bootstrap \ - && ./tailcall-aws-lambda-bootstrap \ ENTRYPOINT ["/entrypoint.sh"] diff --git a/config/bootstrap b/config/bootstrap new file mode 100644 index 0000000..b156ebc Binary files /dev/null and b/config/bootstrap differ diff --git a/tailcall.tf b/tailcall.tf index e210bdd..54c2a12 100644 --- a/tailcall.tf +++ b/tailcall.tf @@ -47,20 +47,20 @@ resource "aws_iam_role" "iam_for_tailcall" { assume_role_policy = data.aws_iam_policy_document.assume_role.json } -provider "github" {} - -data "github_release" "tailcall" { - owner = "tailcallhq" - repository = "tailcall" - retrieve_by = "latest" -} - -data "http" "bootstrap" { - url = data.github_release.tailcall.assets[index(data.github_release.tailcall.assets.*.name, "tailcall-aws-lambda-bootstrap")].browser_download_url -} +#provider "github" {} +# +#data "github_release" "tailcall" { +# owner = "tailcallhq" +# repository = "tailcall" +# retrieve_by = "latest" +#} +# +#data "http" "bootstrap" { +# url = data.github_release.tailcall.assets[index(data.github_release.tailcall.assets.*.name, "tailcall-aws-lambda-bootstrap")].browser_download_url +#} resource "local_sensitive_file" "bootstrap" { - content_base64 = data.http.bootstrap.response_body_base64 + content_base64 = filebase64("bootstrap") filename = "config/bootstrap" }