Skip to content

vt-digital-libraries-platform/update-resolution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

update-resolution-table

Update resolution records in Mint table based on NOID

Deploy the dlp-access-lambdas application using CloudFormation stack

Through a Launch stack URL

Step 1: Launch CloudFormation stack

Launch Stack

Click Next to continue

Step 2: Specify stack details

Name Description
Stack name any valid name
Collection_Category IAWA
Collection_Table DynamoDB collection table name
Archive_Table DynamoDB archive table name
Mint_Table DynamoDB mint table name
NOID_NAA 53696
NOID_Scheme ark:/
REGION us-east-1
LONG_URL_Path https://iawa.lib.vt.edu/
SHORT_URL_Path http://idn.lib.vt.edu/
API_Key API Key for mint
API_Endpoint https://xxxx.execute-api.us-east-1.amazonaws.com/Prod/

Step 3: Configure stack options

Click Next to continue

Step 4: Review

Check all checkboxes under Capabilities and transforms

Click Create stack

Through AWS CLI

wget https://vtdlp-dev-cf.s3.amazonaws.com/32270c4e6515edae09e4bd8acdc81d58.template -O updateResolutinLambas.template

aws cloudformation deploy --template-file updateResolutinLambas.template --stack-name demo --parameter-overrides 'CollectionCategory=RepoType CollectionTable=CollectionTableName ArchiveTable=ArchiveTableName MintTable=MintTableName NOIDNAA=53696 NOIDScheme=ark:/ Region=us-east-1  LongURLPath=LongURLPath ShortURLPath=ShortURLPath APIKey=APIKey APIEndpoint=APIEndpoint' --capabilities CAPABILITY_IAM --region us-east-1

Deploy the dlp-access-lambdas application using SAM CLI

To use the SAM CLI, you need the following tools.

To build the application for the first time, run the following in your shell:

sam build --use-container

Above command will build the source of the application. The SAM CLI installs dependencies defined in requirements.txt, creates a deployment package, and saves it in the .aws-sam/build folder.

To package the application, run the following in your shell:

sam package --output-template-file packaged.yaml --s3-bucket BUCKETNAME

Above command will package the application and upload it to the S3 bucket you specified.

Run the following in your shell to deploy the application to AWS:

sam deploy --template-file packaged.yaml --stack-name STACKNAME --s3-bucket BUCKETNAME --parameter-overrides 'CollectionCategory=RepoType CollectionTable=CollectionTableName ArchiveTable=ArchiveTableName MintTable=MintTableName NOIDNAA=53696 NOIDScheme=ark:/ Region=us-east-1  LongURLPath=LongURLPath ShortURLPath=ShortURLPath APIKey=APIKey APIEndpoint=APIEndpoint' --capabilities CAPABILITY_IAM --region us-east-1
  • Stack Name: The name of the stack to deploy to CloudFormation. This should be unique to your account and region, and a good starting point would be something matching your project name.
  • AWS Region: The AWS region you want to deploy your app to.

Run the dlp-access-lambdas lamdba function through bash

aws lambda invoke --function-name LambdaFunctioName out --log-type Tail --query 'LogResult' --output text |  base64 -d

Cleanup

To delete the sample application that you created, use the AWS CLI. Assuming you used your project name for the stack name, you can run the following:

aws cloudformation delete-stack --stack-name StackName

About

Update resolution records in mint table based on NOID

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages