Skip to content

Commit 641e9e6

Browse files
committed
stageA/stageB: replace hardcoded suffix -a/-b with stage name
1 parent befbb05 commit 641e9e6

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

sdlf-stageA/template.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ Resources:
441441
reason: Permissions to write CloudWatch Logs are granted by rLambdaCommonPolicy
442442
Properties:
443443
CodeUri: ./lambda/stage-a-redrive/src
444-
FunctionName: !Sub sdlf-${pTeamName}-${pPipeline}-redrive-a
444+
FunctionName: !Sub sdlf-${pTeamName}-${pPipeline}-redrive-${pStageName}
445445
Environment:
446446
Variables:
447447
TEAM: !Ref pTeamName
@@ -461,7 +461,7 @@ Resources:
461461
reason: Permissions to write CloudWatch Logs are granted by rLambdaCommonPolicy
462462
Properties:
463463
CodeUri: ./lambda/stage-a-preupdate-metadata/src
464-
FunctionName: !Sub sdlf-${pTeamName}-${pPipeline}-preupdate-a
464+
FunctionName: !Sub sdlf-${pTeamName}-${pPipeline}-preupdate-${pStageName}
465465
Description: Pre-Update the metadata in the DynamoDB Catalog table
466466
Environment:
467467
Variables:
@@ -479,7 +479,7 @@ Resources:
479479
reason: Permissions to write CloudWatch Logs are granted by rLambdaCommonPolicy
480480
Properties:
481481
CodeUri: ./lambda/stage-a-process-object/src
482-
FunctionName: !Sub sdlf-${pTeamName}-${pPipeline}-process-a
482+
FunctionName: !Sub sdlf-${pTeamName}-${pPipeline}-process-${pStageName}
483483
Description: Processing pipeline
484484
MemorySize: 1536
485485
Timeout: 600
@@ -494,7 +494,7 @@ Resources:
494494
reason: Permissions to write CloudWatch Logs are granted by rLambdaCommonPolicy
495495
Properties:
496496
CodeUri: ./lambda/stage-a-postupdate-metadata/src
497-
FunctionName: !Sub sdlf-${pTeamName}-${pPipeline}-postupdate-a
497+
FunctionName: !Sub sdlf-${pTeamName}-${pPipeline}-postupdate-${pStageName}
498498
Description: Post-Update the metadata in the DynamoDB Catalog table
499499
MemorySize: 256
500500
Timeout: 300
@@ -509,7 +509,7 @@ Resources:
509509
reason: Permissions to write CloudWatch Logs are granted by rLambdaCommonPolicy
510510
Properties:
511511
CodeUri: ./lambda/stage-a-error/src
512-
FunctionName: !Sub sdlf-${pTeamName}-${pPipeline}-error-a
512+
FunctionName: !Sub sdlf-${pTeamName}-${pPipeline}-error-${pStageName}
513513
Description: Fallback lambda to handle messages which failed processing
514514
MemorySize: 256
515515
Timeout: 300
@@ -702,7 +702,7 @@ Resources:
702702
rStateMachine:
703703
Type: AWS::Serverless::StateMachine
704704
Properties:
705-
Name: !Sub sdlf-${pTeamName}-${pPipeline}-sm-a
705+
Name: !Sub sdlf-${pTeamName}-${pPipeline}-sm-${pStageName}
706706
DefinitionUri: ./state-machine/stage-a.asl.json
707707
DefinitionSubstitutions:
708708
lStep1: !GetAtt rLambdaStep1.Arn

sdlf-stageB/template.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ Resources:
377377
reason: Permissions to write CloudWatch Logs are granted by rLambdaCommonPolicy
378378
Properties:
379379
CodeUri: ./lambda/stage-b-fetch-metadata/src
380-
FunctionName: !Sub sdlf-${pTeamName}-${pPipeline}-fetch-metadata-b
380+
FunctionName: !Sub sdlf-${pTeamName}-${pPipeline}-fetch-metadata-${pStageName}
381381
Description: Fetches transform metadata from DynamoDB
382382
MemorySize: 128
383383
Timeout: 300
@@ -392,7 +392,7 @@ Resources:
392392
reason: Permissions to write CloudWatch Logs are granted by rLambdaCommonPolicy
393393
Properties:
394394
CodeUri: ./lambda/stage-b-postupdate-metadata/src
395-
FunctionName: !Sub sdlf-${pTeamName}-${pPipeline}-postupdate-b
395+
FunctionName: !Sub sdlf-${pTeamName}-${pPipeline}-postupdate-${pStageName}
396396
Description: Post-Update the metadata in the DynamoDB Catalog table
397397
MemorySize: 512
398398
Timeout: 600
@@ -407,7 +407,7 @@ Resources:
407407
reason: Permissions to write CloudWatch Logs are granted by rLambdaCommonPolicy
408408
Properties:
409409
CodeUri: ./lambda/stage-b-error/src
410-
FunctionName: !Sub sdlf-${pTeamName}-${pPipeline}-error-b
410+
FunctionName: !Sub sdlf-${pTeamName}-${pPipeline}-error-${pStageName}
411411
Description: Fallback lambda to handle messages which failed processing
412412
MemorySize: 256
413413
Timeout: 300
@@ -596,7 +596,7 @@ Resources:
596596
rStateMachine:
597597
Type: AWS::Serverless::StateMachine
598598
Properties:
599-
Name: !Sub sdlf-${pTeamName}-${pPipeline}-sm-b
599+
Name: !Sub sdlf-${pTeamName}-${pPipeline}-sm-${pStageName}
600600
DefinitionUri: ./state-machine/stage-b.asl.json
601601
DefinitionSubstitutions:
602602
lStep1: !GetAtt rLambdaStep1.Arn

0 commit comments

Comments
 (0)