Skip to content

Commit

Permalink
fixing aws path
Browse files Browse the repository at this point in the history
  • Loading branch information
shashitnak committed Jun 18, 2024
1 parent 70ec48d commit 93f3e20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aws/tailcall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ data "http" "bootstrap" {

resource "local_sensitive_file" "bootstrap" {
content_base64 = data.http.bootstrap.response_body_base64
filename = "config/bootstrap"
filename = "BOOTSTRAP_PATH"
}

resource "aws_lambda_function" "tailcall" {
Expand Down
3 changes: 2 additions & 1 deletion scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ deploy() {
setup_terraform
awk -v org="\"$TERRAFORM_ORG\"" "{sub(/var.TERRAFORM_ORG/,org)}1" /aws/tailcall.tf > /tmp/temp1.tf
awk -v workspace="\"$TERRAFORM_WORKSPACE\"" "{sub(/var.TERRAFORM_WORKSPACE/,workspace)}1" /tmp/temp1.tf > /tmp/temp2.tf
mv /tmp/temp2.tf tailcall.tf
awk -v boot_strap_path="config/$TC_CONFIG_DIR/bootstrap" "{sub(/BOOTSTRAP_PATH/,workspace)}1" /tmp/temp2.tf > /tmp/temp3.tf
mv /tmp/temp3.tf tailcall.tf
terraform init
echo "List: $(find /app -type f)"
TF_LOG=DEBUG terraform apply -auto-approve
Expand Down

0 comments on commit 93f3e20

Please sign in to comment.