add extra job revision attributes (#2608)
This commit is contained in:
committed by
GitHub
parent
d832361a15
commit
bbe84a5ca8
@@ -495,11 +495,11 @@ module "cloud_run" {
|
||||
| [labels](variables.tf#L142) | Resource labels. | <code>map(string)</code> | | <code>{}</code> |
|
||||
| [launch_stage](variables.tf#L148) | The launch stage as defined by Google Cloud Platform Launch Stages. | <code>string</code> | | <code>null</code> |
|
||||
| [prefix](variables.tf#L170) | Optional prefix used for resource names. | <code>string</code> | | <code>null</code> |
|
||||
| [revision](variables.tf#L190) | Revision template configurations. | <code title="object({ name = optional(string) gen2_execution_environment = optional(bool) max_concurrency = optional(number) max_instance_count = optional(number) min_instance_count = optional(number) vpc_access = optional(object({ connector = optional(string) egress = optional(string) subnet = optional(string) tags = optional(list(string)) })) timeout = optional(string) })">object({…})</code> | | <code>{}</code> |
|
||||
| [service_account](variables.tf#L217) | Service account email. Unused if service account is auto-created. | <code>string</code> | | <code>null</code> |
|
||||
| [service_account_create](variables.tf#L223) | Auto-create service account. | <code>bool</code> | | <code>false</code> |
|
||||
| [tag_bindings](variables.tf#L229) | Tag bindings for this service, in key => tag value id format. | <code>map(string)</code> | | <code>{}</code> |
|
||||
| [volumes](variables.tf#L236) | Named volumes in containers in name => attributes format. | <code title="map(object({ secret = optional(object({ name = string default_mode = optional(string) path = optional(string) version = optional(string) mode = optional(string) })) cloud_sql_instances = optional(list(string)) empty_dir_size = optional(string) }))">map(object({…}))</code> | | <code>{}</code> |
|
||||
| [revision](variables.tf#L190) | Revision template configurations. | <code title="object({ name = optional(string) gen2_execution_environment = optional(bool) max_concurrency = optional(number) max_instance_count = optional(number) min_instance_count = optional(number) job = optional(object({ max_retries = optional(number) task_count = optional(number) }), {}) vpc_access = optional(object({ connector = optional(string) egress = optional(string) subnet = optional(string) tags = optional(list(string)) })) timeout = optional(string) })">object({…})</code> | | <code>{}</code> |
|
||||
| [service_account](variables.tf#L221) | Service account email. Unused if service account is auto-created. | <code>string</code> | | <code>null</code> |
|
||||
| [service_account_create](variables.tf#L227) | Auto-create service account. | <code>bool</code> | | <code>false</code> |
|
||||
| [tag_bindings](variables.tf#L233) | Tag bindings for this service, in key => tag value id format. | <code>map(string)</code> | | <code>{}</code> |
|
||||
| [volumes](variables.tf#L240) | Named volumes in containers in name => attributes format. | <code title="map(object({ secret = optional(object({ name = string default_mode = optional(string) path = optional(string) version = optional(string) mode = optional(string) })) cloud_sql_instances = optional(list(string)) empty_dir_size = optional(string) }))">map(object({…}))</code> | | <code>{}</code> |
|
||||
| [vpc_connector_create](variables-vpcconnector.tf#L17) | Populate this to create a Serverless VPC Access connector. | <code title="object({ ip_cidr_range = optional(string) machine_type = optional(string) name = optional(string) network = optional(string) instances = optional(object({ max = optional(number) min = optional(number) }), {} ) throughput = optional(object({ max = optional(number) min = optional(number) }), {} ) subnet = optional(object({ name = optional(string) project_id = optional(string) }), {}) })">object({…})</code> | | <code>null</code> |
|
||||
|
||||
## Outputs
|
||||
|
||||
@@ -24,6 +24,7 @@ resource "google_cloud_run_v2_job" "job" {
|
||||
launch_stage = var.launch_stage
|
||||
deletion_protection = var.deletion_protection
|
||||
template {
|
||||
task_count = var.revision.job.task_count
|
||||
template {
|
||||
encryption_key = var.encryption_key
|
||||
dynamic "vpc_access" {
|
||||
@@ -43,6 +44,7 @@ resource "google_cloud_run_v2_job" "job" {
|
||||
}
|
||||
}
|
||||
}
|
||||
max_retries = var.revision.job.max_retries
|
||||
timeout = var.revision.timeout
|
||||
service_account = local.service_account_email
|
||||
dynamic "containers" {
|
||||
|
||||
@@ -195,6 +195,10 @@ variable "revision" {
|
||||
max_concurrency = optional(number)
|
||||
max_instance_count = optional(number)
|
||||
min_instance_count = optional(number)
|
||||
job = optional(object({
|
||||
max_retries = optional(number)
|
||||
task_count = optional(number)
|
||||
}), {})
|
||||
vpc_access = optional(object({
|
||||
connector = optional(string)
|
||||
egress = optional(string)
|
||||
|
||||
Reference in New Issue
Block a user