Other Articles

Cloud Run – Configure Timeout Settings

Ensure timeout values are configured for Cloud Run services to prevent resource overuse and improve application stability.

Check Details

  • Entity Type: Resources
  • Check: Configure Timeout Settings
  • Risk: Without configured timeout values, long-running requests may consume excessive resources, impact service stability, and increase the risk of denial-of-service scenarios.

Remediation via Google Cloud Console

  1. Go to Cloud Run using Google Cloud Console . Cloud Run Services
  2. Click on the affected Cloud Run service.
  3. Click Edit & Deploy New Revision. Edit Cloud Run Service
  4. In the Container(s) section, locate Request timeout.
  5. Configure an appropriate timeout value (in seconds) based on application requirements. Cloud Run Timeout Setting
  6. Click Deploy to apply the changes.

Remediation via Google Cloud CLI

  1. Update the Cloud Run service to configure request timeout:
    gcloud run services update SERVICE_NAME \
     --timeout=TIMEOUT_IN_SECONDS \
     --region=REGION
    

Default Value

By default, Cloud Run services use a request timeout of 300 seconds unless explicitly configured.