Cloud platforms
Questions about AWS, Azure, and Google Cloud Platform.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AWS Lambda Service Naming using Regex

prabhavathi
Frequent Guest

Can anyone help me with this issue, I am trying to change AWS Lambda service function name as below, 

My actual requirement: Removing random text inbetween the service name

lambda-naming-test-FlightTailFunctionV2-ZQRUSx5pucrm in ap-southeast-2 

lambda-naming-test-FlightTailFunctionV2 in ap-southeast-2

 

But I can get like this with Regex Format : {Service:DetectedName/^(.+?)-[A-Za-z0-9]+ in .*}

lambda-naming-test-FlightTailFunctionV2-ZQRUSx5pucrm in ap-southeast-2 

lambda-naming-test-FlightTailFunctionV2

prabhavathi_0-1776667479339.png

 

 

 

prabhavathi_1-1776667507105.png

Can anyone suggest me better Regex format to remove random text inbetween the service name?

0 REPLIES 0

Featured Posts