Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
Merge tag 'v2.0.1-rc0' into cfn-rel
Browse files Browse the repository at this point in the history
  • Loading branch information
zxkane committed Oct 28, 2021
2 parents ed4a3e7 + 1747d7a commit 66919e1
Show file tree
Hide file tree
Showing 25 changed files with 1,752 additions and 1,753 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.json

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

3 changes: 1 addition & 2 deletions .gitattributes

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

13 changes: 11 additions & 2 deletions .github/workflows/upgrade.yml

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

5 changes: 2 additions & 3 deletions .gitignore

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

3 changes: 1 addition & 2 deletions .npmignore

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

7 changes: 6 additions & 1 deletion .projen/deps.json

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

87 changes: 33 additions & 54 deletions .projen/tasks.json

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

18 changes: 13 additions & 5 deletions .projenrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { AwsCdkTypeScriptApp, DependenciesUpgradeMechanism, web } = require('projen');
const { AwsCdkTypeScriptApp, web } = require('projen');

const tsExcludeConfig = {
compilerOptions: {
Expand Down Expand Up @@ -78,6 +78,7 @@ const project = new AwsCdkTypeScriptApp({
devDeps: [
'@types/aws-lambda@^8.10.83',
'@types/mongodb@^3.6.20',
'@types/bson@^4.2.0',
] /* Build dependencies for this module. */,
// entrypoint: 'lib/index.js', /* Module entrypoint (`main` in `package.json`). */
// homepage: undefined, /* Package's Homepage / Website. */
Expand Down Expand Up @@ -178,12 +179,13 @@ const project = new AwsCdkTypeScriptApp({
// sampleCode: true, /* Generate one-time sample in `src/` and `test/` if there are no files there. */
tsconfig: tsExcludeConfig /* Custom TSConfig. */,
// typescriptVersion: '^3.9.5', /* TypeScript version to use. */
depsUpgrade: DependenciesUpgradeMechanism.githubWorkflow({
depsUpgradeOptions: {
ignoreProjen: false,
workflowOptions: {
labels: ['auto-approve', 'auto-merge'],
secret: 'PROJEN_GITHUB_TOKEN',
},
}),
},
});

project.addTask('deploy-to-default-vpc', {
Expand All @@ -199,9 +201,12 @@ project.addTask('postinstall', {
project.package.addField('resolutions', {
'trim-newlines': '^3.0.1',
'pac-resolver': '^5.0.0',
'set-value': '^4.0.1',
'ansi-regex': '^5.0.1',

});
project.addFields({
version: '2.0.0-mainline',
version: '2.0.1-mainline',
});

const tsReactConfig = {
Expand Down Expand Up @@ -276,8 +281,11 @@ reactPrj.package.addField('resolutions', {
'normalize-url': '^4.5.1',
'browserslist': '^4.16.5',
'css-what': '^5.0.1',
'ansi-html': '^0.0.7',
'immer': '^9.0.6',
'axios': '^0.21.4',
'set-value': '^4.0.1',
'ansi-regex': '^5.0.1',
'nth-check': '^2.0.1',
});

project.synth();
26 changes: 19 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,18 @@ The solution is using graph database [Amazon Neptune][neptune] for real-time fra
- Asia Pacific (Mumbai): ap-south-1
- China (Ningxia): cn-northwest-1

### Prerequisites
### Quick deployment

Region name | Region code | Launch
--- | --- | ---
Global regions(switch to above region you want to deploy) | us-east-1(default) | [Launch](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=fraud-detection-on-dgl&templateURL=https://aws-gcr-solutions.s3.amazonaws.com/Realtime-fraud-detection-with-gnn-on-dgl-rel/latest/realtime-fraud-detection-with-gnn-on-dgl.template.json)
AWS China(Ningxia) Region | cn-northwest-1 | [Launch](https://cn-northwest-1.console.amazonaws.cn/cloudformation/home?region=cn-northwest-1#/stacks/create/template?stackName=fraud-detection-on-dgl&templateURL=https://aws-gcr-solutions.s3.cn-north-1.amazonaws.com.cn/Realtime-fraud-detection-with-gnn-on-dgl-rel/latest/realtime-fraud-detection-with-gnn-on-dgl-aws-cn.template.json)

See [deployment guide][deployment-guide] for detail steps.

### Deploy from source

#### Prerequisites

- An AWS account
- Configure [credential of aws cli][configure-aws-cli]
Expand All @@ -81,13 +92,13 @@ Run below command if you are deployed to China regions
aws ecr get-login-password --region cn-northwest-1 | docker login --username AWS --password-stdin 727897471807.dkr.ecr.cn-northwest-1.amazonaws.com.cn
```

### Deploy it in a new VPC
#### Deploy it in a new VPC
The deployment will create a new VPC acrossing two AZs at least and NAT gateways. Then the solution will be deployed into the newly created VPC.
```shell
yarn deploy
```

### Deploy it into existing VPC
#### Deploy it into existing VPC
If you want to deploy the solution to default VPC, use below command.
```shell
yarn deploy-to-default-vpc
Expand All @@ -99,22 +110,22 @@ npx cdk deploy -c vpcId=<your vpc id>

**NOTE: please make sure your existing VPC having both public subnets and private subnets with NAT gateway.**

### Deploy it with custom Neptune instance class and replica count
#### Deploy it with custom Neptune instance class and replica count

The solution will deploy Neptune cluster with instance class `db.r5.xlarge` and `1` read replica by default. You can override the instance class and replica count like below,

```shell
npx cdk deploy --parameters NeptuneInstaneType=db.r5.4xlarge -c NeptuneReplicaCount=2
```

### Deploy it with custom domain of dashboard
#### Deploy it with custom domain of dashboard

If you want use custom domain to access the dashbaord of solution, you can use below options when deploying the solution. NOTE: you need already create a public hosted zone in Route 53, see [Solution prerequisites](#prerequisites) for detail.
```shell
npx cdk deploy -c EnableDashboardCustomDomain=true --parameters DashboardDomain=<the custom domain> --parameters Route53HostedZoneId=<hosted zone id of your domain>
```

### Deploy it to China regions
#### Deploy it to China regions
Add below additional context parameters,
```shell
npx cdk deploy -c TargetPartition=aws-cn
Expand Down Expand Up @@ -178,4 +189,5 @@ This project is licensed under the Apache-2.0 License.
[configure-aws-cli]: https://docs.aws.amazon.com/zh_cn/cli/latest/userguide/cli-chap-configure.html
[aws-cdk]: https://aws.amazon.com/cdk/
[cfn-stack]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacks.html
[create-public-hosted-zone]: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/CreatingHostedZone.html
[create-public-hosted-zone]: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/CreatingHostedZone.html
[deployment-guide]: https://awslabs.github.io/realtime-fraud-detection-with-gnn-on-dgl/en/deployment/
Loading

0 comments on commit 66919e1

Please sign in to comment.