Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Renamed the pipeline variables and directories #93

Merged
merged 3 commits into from
Sep 23, 2019
Merged
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
45 changes: 16 additions & 29 deletions deploy/cloudformation/manifest-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -464,32 +464,32 @@ Resources:
NO_REPLY_EMAIL: !Ref NoReplyEmailAddr
TROUBLESHOOTING_EMAIL: !Ref TroubleshooterEmailAddr

MetsInputLambdaFunction:
ProcessMetsInputLambdaFunction:
Type: AWS::Serverless::Function
Properties:
Handler: handler.run
Role: !GetAtt [ LambdaExecutionRole, Arn ]
Runtime: python3.7
Timeout: 90
CodeUri: process-mets/
CodeUri: process_mets_input/

CsvInputLambdaFunction:
ProcessCsvInputLambdaFunction:
Type: AWS::Serverless::Function
Properties:
Handler: handler.run
Role: !GetAtt [ LambdaExecutionRole, Arn ]
Runtime: python3.7
Timeout: 90
CodeUri: json-from-csv/
CodeUri: process_csv_input/

ManifestLambdaFunction:
CreateManifestLambdaFunction:
Type: AWS::Serverless::Function
Properties:
Handler: handler.run
Role: !GetAtt [ LambdaExecutionRole, Arn ]
Runtime: python3.7
Timeout: 90
CodeUri: manifest-from-input-json/
CodeUri: create_manifest/

SchemaLambdaFunction:
Type: AWS::Serverless::Function
Expand All @@ -513,19 +513,6 @@ Resources:
Variables:
PROCESS_BUCKET: !Ref ProcessBucket

IndexLambdaFunction:
Type: AWS::Serverless::Function
Properties:
Handler: handler.run
Role: !GetAtt [ LambdaExecutionRole, Arn ]
Runtime: python3.7
Timeout: 600
MemorySize: 512
CodeUri: index/
Environment:
Variables:
PROCESS_BUCKET: !Ref ProcessBucket

# PYRAMID GENERATOR PROCESSING
ImageTaskDefinition:
Type: AWS::ECS::TaskDefinition
Expand Down Expand Up @@ -705,18 +692,18 @@ Resources:
{
"Variable": "$.metadata-source-type",
"StringEquals": "csv",
"Next": "ProcessInput"
"Next": "ProcessCsvInput"
},
{
"Variable": "$.metadata-source-type",
"StringEquals": "mets",
"Next": "ProcessMets"
"Next": "ProcessMetsInput"
}
]
},
"ProcessInput": {
"ProcessCsvInput": {
"Type": "Task",
"Resource": "${csvInputLambdaArn}",
"Resource": "${processCsvInputLambdaArn}",
"Catch": [
{
"ErrorEquals": [ "States.ALL" ],
Expand All @@ -726,9 +713,9 @@ Resources:
],
"Next": "ProcessSchema"
},
"ProcessMets": {
"ProcessMetsInput": {
"Type": "Task",
"Resource": "${metsInputLambdaArn}",
"Resource": "${processMetsInputLambdaArn}",
"Catch": [
{
"ErrorEquals": [ "States.ALL" ],
Expand All @@ -752,7 +739,7 @@ Resources:
},
"ProcessManifest": {
"Type": "Task",
"Resource": "${manifestLambdaArn}",
"Resource": "${createManifestLambdaArn}",
"Catch": [
{
"ErrorEquals": [ "States.ALL" ],
Expand All @@ -775,10 +762,10 @@ Resources:
publicSubnet1: {"Fn::ImportValue" : {"Fn::Sub" : "${NetworkStackName}:PublicSubnet1ID"}},
publicSubnet2: {"Fn::ImportValue" : {"Fn::Sub" : "${NetworkStackName}:PublicSubnet2ID"}},
initManifestLambdaArn: !GetAtt [InitManifestLambdaFunction, Arn],
csvInputLambdaArn: !GetAtt [ CsvInputLambdaFunction, Arn ],
manifestLambdaArn: !GetAtt [ ManifestLambdaFunction, Arn ],
processCsvInputLambdaArn: !GetAtt [ ProcessCsvInputLambdaFunction, Arn ],
createManifestLambdaArn: !GetAtt [ CreateManifestLambdaFunction, Arn ],
schemaLambdaArn: !GetAtt [ SchemaLambdaFunction, Arn ],
metsInputLambdaArn: !GetAtt [MetsInputLambdaFunction, Arn],
processMetsInputLambdaArn: !GetAtt [ProcessMetsInputLambdaFunction, Arn],
finalizeLambdaArn: !GetAtt [ FinalizeLambdaFunction, Arn ]
}
RoleArn: !GetAtt [ StatesExecutionRole, Arn ]
Expand Down