Description
Lambda CapacityProvider now supports PropagateTags in CloudFormation, allowing customers to propagate tags to managed EC2 instances, ENIs, and EBS volumes. The L1 CfnCapacityProvider already has the propagateTags property, but there is no L2 support.
Tag propagation - AWS LambdaTag propagation - AWS Lambda
Proposed Solution
Add a propagateTags prop to CapacityProviderProps using the static factory class pattern (matching ScalingOptions and InstanceTypeFilter on the same construct):
new lambda.CapacityProvider(this, 'CP', {
subnets: vpc.privateSubnets,
securityGroups: [securityGroup],
propagateTags: lambda.PropagateTags.explicit([
{ key: 'CostCenter', value: 'Engineering' },
]),
});
Acknowledgements
Description
Lambda CapacityProvider now supports
PropagateTagsin CloudFormation, allowing customers to propagate tags to managed EC2 instances, ENIs, and EBS volumes. The L1CfnCapacityProvideralready has thepropagateTagsproperty, but there is no L2 support.Tag propagation - AWS LambdaTag propagation - AWS Lambda
Proposed Solution
Add a
propagateTagsprop toCapacityProviderPropsusing the static factory class pattern (matchingScalingOptionsandInstanceTypeFilteron the same construct):Acknowledgements