Skip to content

Commit

Permalink
feat: upgrade to nodejs 16
Browse files Browse the repository at this point in the history
  • Loading branch information
ynyany committed Jun 1, 2023
1 parent 2464921 commit 0304445
Show file tree
Hide file tree
Showing 29 changed files with 108,524 additions and 25,526 deletions.
14 changes: 6 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# Dynamic Object and Rule Extensions for AWS Network Firewall Solution Release Changelog

## [1.1.2] - 2023-06-01

### Changed
- Support for Node.js version 16
- Update config to disable s3 default ACL

## [1.1.1] - 2023-01-22

### Changed
- Add support for app registry
- Update CDK version to 2.5.0

## [1.1.0] - 2022-05-12
### Added
- Support for lambda reference

## [1.0.0] - 2022-01-20
### Added
- All files, initial version
2 changes: 1 addition & 1 deletion source/cdk.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"app": "npx ts-node bin/cdk-solution.ts",
"context": {
"apiGatewayType": "private"
"@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy": true
}
}
9 changes: 8 additions & 1 deletion source/integration-tests/lib/test-support-stack-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import * as autoscaling from "aws-cdk-lib/aws-autoscaling";
import * as ec2 from "aws-cdk-lib/aws-ec2";
import * as lambda from "aws-cdk-lib/aws-lambda";

import { Arn, CfnOutput, Stack, StackProps, Tags } from "aws-cdk-lib";
import { Arn, Aspects, CfnOutput, Stack, StackProps, Tags } from "aws-cdk-lib";
import * as path from "path";
import { Construct } from "constructs";
export const TAG_KEY = "FF_TEST";
Expand Down Expand Up @@ -92,6 +92,7 @@ export class TestSupportStackStack extends Stack {
ec2.InstanceClass.T2,
ec2.InstanceSize.MICRO
),
requireImdsv2: true,
machineImage: new ec2.AmazonLinuxImage({
generation: ec2.AmazonLinuxGeneration.AMAZON_LINUX_2,
}),
Expand Down Expand Up @@ -139,6 +140,7 @@ export class TestSupportStackStack extends Stack {
subnetType: ec2.SubnetType.PUBLIC,
},
securityGroup: securityGroup,
requireImdsv2: true,
instanceType: ec2.InstanceType.of(
ec2.InstanceClass.T2,
ec2.InstanceSize.MICRO
Expand Down Expand Up @@ -184,6 +186,11 @@ export class TestSupportStackStack extends Stack {
securityGroup: mySecurityGroup,
desiredCapacity: 1,
});

const aspect = new autoscaling.AutoScalingGroupRequireImdsv2Aspect();

Aspects.of(this).add(aspect);

new CfnOutput(this, ASG_OUTPUT_KEY, {
value: asg.autoScalingGroupName,
});
Expand Down
26,751 changes: 15,337 additions & 11,414 deletions source/integration-tests/package-lock.json

Large diffs are not rendered by default.

19 changes: 9 additions & 10 deletions source/integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
"all": "npm run lint && npm run build && npm run test"
},
"dependencies": {
"aws-cdk-lib": "^2.50.0"
"@aws-cdk/assert": "^2.50.0",
"@types/node": "10.17.5",
"aws-cdk": "1.139.0"
},
"devDependencies": {
"@aws-cdk/assert": "^2.50.0",
"@aws-sdk/client-auto-scaling": "^3.27.0",
"@aws-sdk/client-cloudformation": "^3.28.0",
"@aws-sdk/client-dynamodb": "^3.28.0",
Expand All @@ -24,14 +25,13 @@
"@aws-sdk/client-sts": "^3.27.0",
"@aws-sdk/credential-providers": "^3.27.0",
"@aws-sdk/util-dynamodb": "^3.28.0",
"@types/jest": "^26.0.20",
"@types/node": "^18.15.10",
"@types/jest":"^27.0.0",
"@types/node": "^10.17.5",
"@types/uuid": "^8.3.0",
"@types/webpack": "^5.28.0",
"@typescript-eslint/eslint-plugin": "^4.13.0",
"@typescript-eslint/parser": "^4.13.0",
"@typescript-eslint/eslint-plugin": "^5.59.6",
"@typescript-eslint/parser": "^5.59.6",
"aws-cdk-lib": "^2.50.0",
"aws-sdk": "^2.1366.0",
"aws-sdk": "^2.1378.0",
"clean-webpack-plugin": "^3.0.0",
"constructs": "^10.0.0",
"eslint": "^7.17.0",
Expand All @@ -47,7 +47,6 @@
"ts-jest": "^29.0.3",
"ts-loader": "^9.4.2",
"ts-mockito": "^2.6.1",
"ts-node": "^8.1.0",
"typescript": "^4.8.4"
"typescript": "4.9.4"
}
}
Loading

0 comments on commit 0304445

Please sign in to comment.