AWS Fundamentals Logo
AWS Fundamentals
AWS::Lambda::CapacityProvider

Lambda CapacityProvider

Creates a capacity provider that manages compute resources for Lambda functions

Properties

7 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
PermissionsConfig
CapacityProviderPermissionsConfig
RequiredCreate-only
VpcConfig
CapacityProviderVpcConfig
RequiredCreate-only
CapacityProviderName
string
Create-only
CapacityProviderScalingConfig
CapacityProviderScalingConfig
InstanceRequirements
InstanceRequirements
Create-only
KmsKeyArn
string
Create-only
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
Arnstring-
Statestring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Lambda::CapacityProvider

Resources:
  MyResource:
    Type: AWS::Lambda::CapacityProvider
    Properties:
      PermissionsConfig: "value"
      VpcConfig: "value"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

lambda:CreateCapacityProviderlambda:GetCapacityProviderlambda:TagResourceiam:PassRoleiam:CreateServiceLinkedRolekms:DescribeKey

read

lambda:GetCapacityProviderlambda:ListTags

update

lambda:UpdateCapacityProviderlambda:TagResourcelambda:UntagResource

delete

lambda:DeleteCapacityProviderlambda:GetCapacityProvider

list

lambda:ListCapacityProviders

Get the Lambda Cheat Sheet

Everything you need to know about Lambda on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceLambda
Properties9
Required2
TaggingSupported
Primary IDCapacityProviderName

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

CapacityProviderNameVpcConfigInstanceRequirementsPermissionsConfigKmsKeyArn

External Links