Skip to content

Commit

Permalink
fix: 🐛 Correção de apontamento de pastas no terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
DanStos committed Jul 30, 2021
1 parent 2017b4d commit ad9ff6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ resource "google_cloudfunctions_function" "function" {
available_memory_mb = 512
timeout = 540
source_archive_bucket = google_storage_bucket.my_storage.name
source_archive_object = "${local.project_name}/${var.project_version}.zip"
source_archive_object = "${local.gcs_bucket_folder_name}/${var.project_version}.zip"
trigger_http = true
entry_point = local.cf_entry_point
environment_variables = {
Expand Down
2 changes: 2 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ locals {
bq_table_psi_suggestions_results = "psi_suggestions_results"
final_dataset_id = "${var.project_prefix}_${var.dataset_id}"
final_bucket_name = "${var.project_prefix}-${var.bucket_name}"
gcs_bucket_folder_name = "config"
}

#######################################
Expand All @@ -21,6 +22,7 @@ variable "bucket_name" {
default = "site-speed-dashboard"
}


variable "project_prefix" {
type = string
description = "Pré-fixo que será utilizado para nomear os produtos que serão utilizados e criados no GCP, exemplo para o cliente Brasil podemos usar o pré-fixo br"
Expand Down

0 comments on commit ad9ff6e

Please sign in to comment.