Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unused checkjob lambda from sdlf-stageB #237

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 0 additions & 55 deletions sdlf-stageB/lambda/stage-b-check-job/src/lambda_function.py

This file was deleted.

34 changes: 0 additions & 34 deletions sdlf-stageB/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -390,21 +390,6 @@ Resources:
Timeout: 300
Role: !GetAtt rRoleLambdaExecutionStep1.Arn

rLambdaJobCheckStep:
Type: AWS::Serverless::Function
Metadata:
cfn_nag:
rules_to_suppress:
- id: W58
reason: Permissions to write CloudWatch Logs are granted by rLambdaCommonPolicy
Properties:
CodeUri: ./lambda/stage-b-check-job/src
FunctionName: !Sub sdlf-${pTeamName}-${pPipeline}-checkjob-b
Description: Checks if job has finished (success/failure)
MemorySize: 256
Timeout: 300
Role: !GetAtt rRoleLambdaExecutionStep1.Arn

rLambdaStep3:
Type: AWS::Serverless::Function
Metadata:
Expand Down Expand Up @@ -508,24 +493,6 @@ Resources:
RoleArn: !Ref pKibanaStreamRole
FilterPattern: "[log_type, log_timestamp, log_id, log_message]"

rLambdaJobCheckStepLogGroup:
Type: AWS::Logs::LogGroup
DeletionPolicy: Delete
UpdateReplacePolicy: Delete
Properties:
LogGroupName: !Sub /aws/lambda/${rLambdaJobCheckStep}
RetentionInDays: !Ref pCloudWatchLogsRetentionInDays
KmsKeyId: !Sub "{{resolve:ssm:/SDLF/KMS/${pTeamName}/InfraKeyId}}"

rUpdateSubscriptionFilterJobCheckStep:
Type: AWS::Logs::SubscriptionFilter
Condition: DeployElasticSearch
Properties:
LogGroupName: !Ref rLambdaJobCheckStepLogGroup
DestinationArn: !Ref pKibanaStream
RoleArn: !Ref pKibanaStreamRole
FilterPattern: "[log_type, log_timestamp, log_id, log_message]"

rLambdaStep3LogGroup:
Type: AWS::Logs::LogGroup
DeletionPolicy: Delete
Expand Down Expand Up @@ -640,7 +607,6 @@ Resources:
DefinitionSubstitutions:
lStep1: !GetAtt rLambdaStep1.Arn
lStep3: !GetAtt rLambdaStep3.Arn
lCheckJob: !GetAtt rLambdaJobCheckStep.Arn
lError: !GetAtt rLambdaErrorStep.Arn
Role: !GetAtt rStatesExecutionRole.Arn
Tracing:
Expand Down