Skip to content

Feature request: allow setting functionName via constructor parameter and environment variable #6309

@leandrodamascena

Description

@leandrodamascena

Use case

Original issue: aws-powertools/powertools-lambda-typescript#3696

I would like to use a new parameter in the Metrics constructor and specify an alternative function name. Also, this would be available via a new ENV VAR.

This would allow for names to be more static since CDK may sometimes replaces functions and the trailing characters are random.

Solution/User Experience

Change the constructor and add a new environment variable

Alternative solutions

Acknowledgment

Metadata

Metadata

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions