Support GCS objects in cloud function modules bundles (#2361)
* cloud function v2 * cloud function v1 * blueprints
This commit is contained in:
committed by
GitHub
parent
ea5e6dedc9
commit
fa00deb747
@@ -85,8 +85,10 @@ module "cf" {
|
||||
location = var.region
|
||||
}
|
||||
bundle_config = {
|
||||
path = "${path.module}/cf"
|
||||
output_path = var.bundle_path
|
||||
path = "${path.module}/cf"
|
||||
folder_options = {
|
||||
archive_path = var.bundle_path
|
||||
}
|
||||
}
|
||||
service_account = module.service-account.email
|
||||
trigger_config = {
|
||||
|
||||
@@ -60,8 +60,10 @@ module "cf" {
|
||||
location = var.region
|
||||
}
|
||||
bundle_config = {
|
||||
path = "${path.module}/src"
|
||||
output_path = var.bundle_path
|
||||
path = "${path.module}/src"
|
||||
folder_options = {
|
||||
archive_path = var.bundle_path
|
||||
}
|
||||
}
|
||||
service_account_create = true
|
||||
trigger_config = {
|
||||
|
||||
@@ -73,8 +73,10 @@ module "cloud-function" {
|
||||
}
|
||||
build_worker_pool = var.cloud_function_config.build_worker_pool_id
|
||||
bundle_config = {
|
||||
path = var.cloud_function_config.source_dir
|
||||
output_path = var.cloud_function_config.bundle_path
|
||||
path = var.cloud_function_config.source_dir
|
||||
folder_options = {
|
||||
archive_path = var.cloud_function_config.bundle_path
|
||||
}
|
||||
}
|
||||
environment_variables = (
|
||||
var.cloud_function_config.debug != true ? {} : { DEBUG = "1" }
|
||||
@@ -145,8 +147,10 @@ module "cloud-function-v2" {
|
||||
}
|
||||
build_worker_pool = var.cloud_function_config.build_worker_pool_id
|
||||
bundle_config = {
|
||||
path = var.cloud_function_config.source_dir
|
||||
output_path = var.cloud_function_config.bundle_path
|
||||
path = var.cloud_function_config.source_dir
|
||||
folder_options = {
|
||||
archive_path = var.cloud_function_config.bundle_path
|
||||
}
|
||||
}
|
||||
environment_variables = (
|
||||
var.cloud_function_config.debug != true ? {} : { DEBUG = "1" }
|
||||
|
||||
@@ -94,8 +94,10 @@ module "cf" {
|
||||
location = var.region
|
||||
}
|
||||
bundle_config = {
|
||||
path = "${path.module}/cf"
|
||||
output_path = var.bundle_path
|
||||
path = "${path.module}/cf"
|
||||
folder_options = {
|
||||
archive_path = var.bundle_path
|
||||
}
|
||||
}
|
||||
service_account = module.service-account.email
|
||||
trigger_config = {
|
||||
@@ -116,9 +118,10 @@ module "cffile" {
|
||||
lifecycle_delete_age_days = null
|
||||
}
|
||||
bundle_config = {
|
||||
path = "${path.module}/cffile"
|
||||
output_path = var.bundle_path_cffile
|
||||
excludes = null
|
||||
path = "${path.module}/cffile"
|
||||
folder_options = {
|
||||
archive_path = var.bundle_path_cffile
|
||||
}
|
||||
}
|
||||
service_account = module.service-account.email
|
||||
trigger_config = {
|
||||
|
||||
@@ -117,8 +117,7 @@ module "cf-restarter" {
|
||||
location = var.region
|
||||
}
|
||||
bundle_config = {
|
||||
path = "${path.module}/function/restarter"
|
||||
output_path = "restarter.zip"
|
||||
path = "${path.module}/function/restarter"
|
||||
}
|
||||
service_account = module.service-account-restarter.email
|
||||
|
||||
@@ -145,8 +144,7 @@ module "cf-healthchecker" {
|
||||
region = var.region
|
||||
bucket_name = module.cf-restarter.bucket_name
|
||||
bundle_config = {
|
||||
path = "${path.module}/function/healthchecker"
|
||||
output_path = "healthchecker.zip"
|
||||
path = "${path.module}/function/healthchecker"
|
||||
}
|
||||
service_account = module.service-account-healthchecker.email
|
||||
function_config = {
|
||||
|
||||
Reference in New Issue
Block a user