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

Policy: AWS > Lambda > Function > Allowed Runtime

Determine the action to take when an AWS > Lambda > Function is not using the desired runtime.

The runtimes allowed in your environment are defined in the AWS > Lambda > Function > Allowed Runtime > Values policy.

If this policy is set to Enforce: Upgrade to Target Runtime, functions will be updated to the runtime defined in the AWS > Lambda > Function > Allowed Runtime > Target Runtime policy — even if their current runtime is in the allowed list. Only functions of the same language as the target runtime are updated; other functions are simply checked against the allowed runtimes. Note that changing the runtime may break the function's code; verify your functions are compatible with the target runtime before enabling enforcement.

For any enforcement actions that specify if new, e.g., Enforce: Upgrade to Target Runtime if new, this control will only take the enforcement actions for functions created within the last 60 minutes. A function's creation time is only recorded when the function is created while real-time event handling is enabled; functions recorded by the AWS > Lambda > Function > Discovery control have no creation time and are checked but never acted on.

Targets

This policy targets the following resource types:

  • AWS > Lambda > Function

Related Policies

  • Target Runtime
  • Values

Controls

Setting this policy configures this control:

  • AWS > Lambda > Function > Allowed Runtime

Policy Specification

Schema Type
string
Default
Skip
Valid Values [YAML]
  • Skip
    
  • Check: Allowed Runtime
    
  • Enforce: Upgrade to Target Runtime
    
  • Enforce: Upgrade to Target Runtime if new
    

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/functionAllowedRuntime
  • GraphQL
    • query policyType(id: "tmod:@turbot/aws-lambda#/policy/types/functionAllowedRuntime") { … }
    • query policySettings(filter: "policyTypeId:'tmod:@turbot/aws-lambda#/policy/types/functionAllowedRuntime'") { … }
    • query policyValues(filter: "policyTypeId:'tmod:@turbot/aws-lambda#/policy/types/functionAllowedRuntime'") { … }
  • CLI
    • Get Policy Type
    • turbot graphql policy-type --id "tmod:@turbot/aws-lambda#/policy/types/functionAllowedRuntime"
    • Get Policy Settings
    • turbot graphql policy-settings --filter "policyTypeId:tmod:@turbot/aws-lambda#/policy/types/functionAllowedRuntime"
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