Skip to content

Commit

Permalink
repaired functinos
Browse files Browse the repository at this point in the history
  • Loading branch information
EndoNrak committed Oct 12, 2023
1 parent 4f5ec93 commit 413a132
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 51 deletions.
28 changes: 14 additions & 14 deletions cloud/sam/template-log.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ Parameters:
Type: String
StopEvaluationFunction:
Type: String
# PostTetrisTrainingCodeFunction:
# Type: String
PostTetrisTrainingCodeFunction:
Type: String
GetTrainingDetailFunction:
Type: String
GetSectionTrainingsFunction:
Type: String
# PostTurtleTrainingCodeFunction:
# Type: String
PostTurtleTrainingCodeFunction:
Type: String
PostAlgorithmTrainingCodeFunction:
Type: String

Expand Down Expand Up @@ -77,17 +77,17 @@ Resources:
LogGroupName: !Sub /aws/lambda/${StopEvaluationFunction}
RetentionInDays: 7

# PostTetrisTrainingCodeFunctionLogGroup:
# Type: AWS::Logs::LogGroup
# Properties:
# LogGroupName: !Sub /aws/lambda/${PostTetrisTrainingCodeFunction}
# RetentionInDays: 7
PostTetrisTrainingCodeFunctionLogGroup:
Type: AWS::Logs::LogGroup
Properties:
LogGroupName: !Sub /aws/lambda/${PostTetrisTrainingCodeFunction}
RetentionInDays: 7

# PostTurtleTrainingCodeFunctionLogGroup:
# Type: AWS::Logs::LogGroup
# Properties:
# LogGroupName: !Sub /aws/lambda/${PostTurtleTrainingCodeFunction}
# RetentionInDays: 7
PostTurtleTrainingCodeFunctionLogGroup:
Type: AWS::Logs::LogGroup
Properties:
LogGroupName: !Sub /aws/lambda/${PostTurtleTrainingCodeFunction}
RetentionInDays: 7

PostAlgorithmTrainingCodeFunctionLogGroup:
Type: AWS::Logs::LogGroup
Expand Down
74 changes: 37 additions & 37 deletions cloud/sam/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ Resources:
PostCompetitionEntryFunction: !Ref PostCompetitionEntryFunction
PostEvaluationRequestFunction: !Ref PostEvaluationRequestFunction
StopEvaluationFunction: !Ref StopEvaluationFunction
# PostTetrisTrainingCodeFunction: !Ref PostTetrisTrainingCodeFunction
PostTetrisTrainingCodeFunction: !Ref PostTetrisTrainingCodeFunction
GetTrainingDetailFunction: !Ref GetTrainingDetailFunction
GetSectionTrainingsFunction: !Ref GetSectionTrainingsFunction
# PostTurtleTrainingCodeFunction: !Ref PostTurtleTrainingCodeFunction
PostTurtleTrainingCodeFunction: !Ref PostTurtleTrainingCodeFunction
PostAlgorithmTrainingCodeFunction: !Ref PostAlgorithmTrainingCodeFunction

GetEntriesFunction:
Expand Down Expand Up @@ -246,42 +246,42 @@ Resources:
Method: post
RestApiId: !Ref TetrisAPI

# PostTetrisTrainingCodeFunction:
# Type: AWS::Serverless::Function
# Metadata:
# Dockerfile: Dockerfile
# DockerContext: ./scripts/post_tetris_training_code
# DockerTag: latest
# Properties:
# PackageType: Image
# Timeout: 30
# Policies:
# - S3ReadPolicy:
# BucketName: !Ref TetrisTrainingBucketName
# Events:
# PostTetrisTrainingCodeEndpoint:
# Type: Api
# Properties:
# Path: /trainings/tetris/{id}
# Method: post
# RestApiId: !Ref TetrisAPI
PostTetrisTrainingCodeFunction:
Type: AWS::Serverless::Function
Metadata:
Dockerfile: Dockerfile
DockerContext: ./scripts/post_tetris_training_code
DockerTag: latest
Properties:
PackageType: Image
Timeout: 30
Policies:
- S3ReadPolicy:
BucketName: !Ref TetrisTrainingBucketName
Events:
PostTetrisTrainingCodeEndpoint:
Type: Api
Properties:
Path: /trainings/tetris/{id}
Method: post
RestApiId: !Ref TetrisAPI

# PostTurtleTrainingCodeFunction:
# Type: AWS::Serverless::Function
# Metadata:
# Dockerfile: Dockerfile
# DockerContext: ./scripts/post_turtle_training_code
# DockerTag: latest
# Properties:
# PackageType: Image
# Timeout: 60
# Events:
# PostTetrisTrainingCodeEndpoint:
# Type: Api
# Properties:
# Path: /trainings/turtle
# Method: post
# RestApiId: !Ref TetrisAPI
PostTurtleTrainingCodeFunction:
Type: AWS::Serverless::Function
Metadata:
Dockerfile: Dockerfile
DockerContext: ./scripts/post_turtle_training_code
DockerTag: latest
Properties:
PackageType: Image
Timeout: 60
Events:
PostTetrisTrainingCodeEndpoint:
Type: Api
Properties:
Path: /trainings/turtle
Method: post
RestApiId: !Ref TetrisAPI

GetTrainingDetailFunction:
Type: AWS::Serverless::Function
Expand Down

0 comments on commit 413a132

Please sign in to comment.