gcf/Failed Deployments

Cloud Run function failed deployments check

Product: Cloud Functions Kind: Debugging Tree

Description

This runbook will assist users to check reasons for failed deployments of Gen2 cloud functions. Current basic Validations:

  • Check for existence of Default SA
  • Check for existence of Cloud function Service Agent
  • Check for existence of cloud functions Service Agent and its permissions
  • Check for error logs for global scope code errors and resource location constraint.

Executing this runbook

gcpdiag runbook gcf/failed-deployments \
  -p project_id=value \
  -p name=value \
  -p cloud_function_name=value \
  -p region=value \
  -p start_time=value \
  -p end_time=value \
  -p gac_service_account=value

Parameters

Name Required Default Type Help
project_id True None str The Project ID containing the cloud function
name False None str Name of the cloud function failing deployment
cloud_function_name True None str Name of the cloud function failing deployment
region True None str Region of the cloud function failing deployment
start_time False None datetime Start time of the issue Format: YYYY-MM-DDTHH:MM:SSZ
end_time False None datetime End time of the issue. Format: YYYY-MM-DDTHH:MM:SSZ
gac_service_account False None str Service account used by the user for deployment.

Get help on available commands

gcpdiag runbook --help

Potential Steps