Turbot Guardrails Hub 
Hub
  • Mods
  • Policy Packs
  • Docs
  • Home
ModsPolicy PacksDocsHome
Mods
AWS
Loading policies...

Policy: AWS > Lambda > Function > Allowed Runtime > Target Runtime

Define the runtime that AWS > Lambda > Function resources should be upgraded to when the AWS > Lambda > Function > Allowed Runtime policy is set to one of the Enforce options.

The runtime defined here should also be in the AWS > Lambda > Function > Allowed Runtime > Values policy. Functions are only upgraded within the same language: for example, a nodejs target runtime applies to nodejs functions and never to python functions.

This policy has no default. For accounts with functions in multiple languages, set this policy as a calculated policy that maps each function's language to a target runtime.

Targets

This policy targets the following resource types:

  • AWS > Lambda > Function

Primary Policy

This policy is used with the following primary policy:

  • AWS > Lambda > Function > Allowed Runtime

Controls

Setting this policy configures this control:

  • AWS > Lambda > Function > Allowed Runtime

Policy Specification

Schema Type
string
Examples [YAML]
  • nodejs24.x
    

Category

  • Resource > Approved

In Your Workspace

  • Policy Settings by Type report

Developers

    Category URI
    • tmod:@turbot/turbot#/control/categories/resourceApproved
  • Policy Type URI
    • tmod:@turbot/aws-lambda#/policy/types/functionAllowedRuntimeTargetRuntime
  • GraphQL
    • query policyType(id: "tmod:@turbot/aws-lambda#/policy/types/functionAllowedRuntimeTargetRuntime") { … }
    • query policySettings(filter: "policyTypeId:'tmod:@turbot/aws-lambda#/policy/types/functionAllowedRuntimeTargetRuntime'") { … }
    • query policyValues(filter: "policyTypeId:'tmod:@turbot/aws-lambda#/policy/types/functionAllowedRuntimeTargetRuntime'") { … }
  • CLI
    • Get Policy Type
    • turbot graphql policy-type --id "tmod:@turbot/aws-lambda#/policy/types/functionAllowedRuntimeTargetRuntime"
    • Get Policy Settings
    • turbot graphql policy-settings --filter "policyTypeId:tmod:@turbot/aws-lambda#/policy/types/functionAllowedRuntimeTargetRuntime"
Guardrails
Guardrails Hub
  • Hub
  • Docs
  • Blog
  • Changelog
Products
  • GuardrailsGuardrails
  • PipesPipes
  • SteampipeSteampipe
  • PowerpipePowerpipe
  • FlowpipeFlowpipe
  • TailpipeTailpipe
Turbot
  • Home
  • About us
  • We're hiring!
  • Contact us
Community

Our community of practitioners love to discuss cloud governance & security.

Slack logoJoin us on Slack →

System StatusLegalSecurity
Terms of UseSecurityPrivacy
181
Mods
521
Resource Types
9,169
Policies
3,578
Controls
1,955
Quick Actions
547
IAM