Skip to content

feat(lambda): add PropagateTags support to CapacityProvider L2 construct #38181

@vicheey

Description

@vicheey

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

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-lambdaRelated to AWS Lambdaneeds-triageThis issue or PR still needs to be triaged.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions