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

Control: AWS > Lambda > Function > Allowed Runtime

Take an action when an AWS > Lambda > Function is not using the desired runtime.

This control checks the function's runtime against the list of allowed runtimes in the AWS > Lambda > Function > Allowed Runtime > Values policy. When enforcement is enabled via the AWS > Lambda > Function > Allowed Runtime policy, the function is upgraded to the runtime defined in the AWS > Lambda > Function > Allowed Runtime > Target Runtime policy — even if its current runtime is allowed. Only a function of the same language as the target runtime is upgraded; otherwise the function is simply checked against the allowed runtimes.

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.

Resource Types

This control targets the following resource types:

  • AWS > Lambda > Function

Policies

The following policies can be used to configure this control:

  • AWS > Lambda > Function > Allowed Runtime

This control type relies on these other policies when running actions:

  • AWS > Lambda > Function > Allowed Runtime > Values
  • AWS > Lambda > Function > Allowed Runtime > Target Runtime

Permissions

Cloud permissions used by this control and its actions:

  • lambda:UpdateFunctionConfiguration

Category

  • Resource > Approved

In Your Workspace

  • Controls by Resource report
  • Controls by Control Type report

Developers

    Control Type URI
    • tmod:@turbot/aws-lambda#/control/types/functionAllowedRuntime
  • Category URI
    • tmod:@turbot/turbot#/control/categories/resourceApproved
  • GraphQL
    • query controlType(id: "tmod:@turbot/aws-lambda#/control/types/functionAllowedRuntime") { … }
    • query controls(filter: "controlTypeId:'tmod:@turbot/aws-lambda#/control/types/functionAllowedRuntime'") { … }
  • CLI
    • Get Controls
    • turbot graphql controls --filter "controlTypeId:tmod:@turbot/aws-lambda#/control/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