Skip to content

Commit

Permalink
Updates for release v1.1.1
Browse files Browse the repository at this point in the history
Updates for release v1.1.1
  • Loading branch information
ihmaws authored Jul 18, 2024
2 parents 4997aac + ffa8b52 commit 39e790c
Show file tree
Hide file tree
Showing 106 changed files with 75 additions and 11,055 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

=======

## [1.1.1] - 2024-07-18

### Security

- Updated python packages to patch vulnerabilities

## [1.1.0] - 2024-07-03

### Updated
Expand Down
13 changes: 9 additions & 4 deletions source/infrastructure/cdk.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"app": "../pre-build-jars.sh && npx ts-node --prefer-ts-exts bin/dus.ts",
"watch": {
"include": ["**"],
"include": [
"**"
],
"exclude": [
"README.md",
"cdk*.json",
Expand All @@ -17,7 +19,10 @@
"context": {
"@aws-cdk/aws-lambda:recognizeLayerVersion": true,
"@aws-cdk/core:checkSecretUsage": true,
"@aws-cdk/core:target-partitions": ["aws", "aws-cn"],
"@aws-cdk/core:target-partitions": [
"aws",
"aws-cn"
],
"@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true,
"@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true,
"@aws-cdk/aws-ecs:arnFormatIncludesClusterName": true,
Expand Down Expand Up @@ -57,10 +62,10 @@
"@aws-cdk/aws-codepipeline-actions:useNewDefaultBranchForCodeCommitSource": true,
"solution_id": "SO0281",
"solution_name": "enhanced-document-understanding-on-aws",
"solution_version": "v1.1.0",
"solution_version": "v1.1.1",
"app_namespace": "app.idp",
"app_registry_name": "enhanced-document-understanding",
"application_type": "AWS-Solutions",
"application_trademark_name": "Enhanced Document Understanding on AWS"
}
}
}
2 changes: 1 addition & 1 deletion source/infrastructure/lib/search/indexed-storage-params.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as cdk from 'aws-cdk-lib';
import { Construct, IConstruct } from 'constructs';
import { Construct } from 'constructs';

/**
* The parameters to select Indexed Storage options
Expand Down
4 changes: 2 additions & 2 deletions source/infrastructure/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/infrastructure/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "enhanced-document-understanding-on-aws-infrastructure",
"version": "1.1.0",
"version": "1.1.1",
"bin": {
"infrastructure": "bin/dus.js"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>example</groupId>
<artifactId>java-lambda</artifactId>
<version>1.0.10</version>
<version>1.1.1</version>

<name>mock-java-lambda</name>

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-lambda",
"version": "1.1.0",
"version": "1.1.1",
"description": "A mock lambda implementation for CDK infrastructure unit",
"main": "index.js",
"scripts": {
Expand All @@ -17,4 +17,4 @@
"url": "https://aws.amazon.com/solutions"
},
"license": "Apache-2.0"
}
}
4 changes: 2 additions & 2 deletions source/infrastructure/test/mock-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions source/infrastructure/test/mock-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mock-react-app",
"version": "1.1.0",
"version": "1.1.1",
"description": "Mock Reactjs app used for unit testing constructs",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -35,4 +35,4 @@
"last 1 safari version"
]
}
}
}
4 changes: 2 additions & 2 deletions source/lambda/create-presigned-url/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/lambda/create-presigned-url/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-presigned-url",
"version": "1.1.0",
"version": "1.1.1",
"description": "This lambda has minimal permissions required to create downloadable presigned URLs for documents.",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion source/lambda/custom-resource/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ moto==4.2.13
pytest==7.4.4
botocore
mock==5.1.0
setuptools==69.0.3
setuptools==70.3.0
freezegun==1.4.0
PyYAML
-e ../layers/custom_boto3_init
Expand Down
4 changes: 2 additions & 2 deletions source/lambda/entity-detection/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/lambda/entity-detection/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "entity-detection",
"version": "1.1.0",
"version": "1.1.1",
"description": "This lambda function detects entities within Text",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions source/lambda/fetch-records/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/lambda/fetch-records/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fetch-records",
"version": "1.1.0",
"version": "1.1.1",
"description": "This lambda backs the ApiGateway REST endpoint to process record and document fetch requests",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions source/lambda/get-inferences/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/lambda/get-inferences/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "get-inferences",
"version": "1.1.0",
"version": "1.1.1",
"description": "This lambda function is used to get inference results by backing the rest-endpoints",
"main": "index.js",
"scripts": {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-nodesdk-custom-config",
"version": "1.1.0",
"version": "1.1.1",
"description": "AWS Nodejs SDK Config intialization layer",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions source/lambda/layers/aws-sdk-lib/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions source/lambda/layers/aws-sdk-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-sdk-layer",
"version": "1.1.0",
"version": "1.1.1",
"description": "AWS Nodejs SDK layer",
"dependencies": {
"aws-sdk": "^2.1532.0"
Expand All @@ -10,4 +10,4 @@
"url": "https://aws.amazon.com/solutions"
},
"license": "Apache-2.0"
}
}
4 changes: 2 additions & 2 deletions source/lambda/layers/common-node-lib/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/lambda/layers/common-node-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "common-node-lib",
"version": "1.1.0",
"version": "1.1.1",
"description": "Common libraries shared by all lambda node modules",
"scripts": {
"test": "jest --coverage --silent --verbose",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ function validateUserToCaseAssociation(caseId, requestContext) {

const userIdFromCase = caseId.split(':')[0];
const userIdFromAuthClaim = requestContext.authorizer.claims['cognito:username'];
if (userIdFromCase !== userIdFromAuthClaim) {
return false;
}

return true;
return (userIdFromCase === userIdFromAuthClaim)
}

module.exports = { validateUserToCaseAssociation };
2 changes: 1 addition & 1 deletion source/lambda/layers/custom-java-sdk-config/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>com.builder.config</groupId>
<artifactId>custom-java-sdk-config</artifactId>
<packaging>jar</packaging>
<version>1.1.0</version>
<version>1.1.1</version>
<name>custom-java-sdk-config</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
2 changes: 1 addition & 1 deletion source/lambda/layers/custom_boto3_init/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

setup(
name="custom_boto3_init",
version="1.0.10",
version="1.1.1",
description="Initialize boto config for AWS Python SDK with custom configuration",
url="https://github.com/aws-solutions/enhanced-document-understanding-on-aws",
author="Amazon Web Services",
Expand Down
4 changes: 2 additions & 2 deletions source/lambda/search/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/lambda/search/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "search",
"version": "1.1.0",
"version": "1.1.1",
"description": "This lambda function is used to search for queries in the kendra index backing the rest-endpoints",
"main": "index.js",
"scripts": {
Expand Down
Loading

0 comments on commit 39e790c

Please sign in to comment.