Update resolution records in Mint table based on NOID
Click Next to continue
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/ |
Click Next to continue
Check all checkboxes under Capabilities and transforms
Click Create stack
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
To use the SAM CLI, you need the following tools.
- SAM CLI - Install the SAM CLI
- Python 3 installed
- Docker - Install Docker community edition
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.
aws lambda invoke --function-name LambdaFunctioName out --log-type Tail --query 'LogResult' --output text | base64 -d
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