@aws/nx-plugin 0.44.0 → 0.45.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/infra/app/__snapshots__/generator.spec.ts.snap +84 -329
- package/src/infra/app/files/app/README.md.template +1 -1
- package/src/infra/app/files/app/src/main.ts.template +2 -3
- package/src/infra/app/files/app/src/stacks/application-stack.ts.template +3 -3
- package/src/infra/app/files/app/src/stages/application-stage.ts.template +16 -0
- package/src/infra/app/generator.js +1 -1
- package/src/infra/app/generator.js.map +1 -1
- package/src/py/mcp-server/__snapshots__/generator.spec.ts.snap +3 -3
- package/src/py/strands-agent/__snapshots__/generator.spec.ts.snap +6 -6
- package/src/ts/mcp-server/__snapshots__/generator.spec.ts.snap +4 -4
- package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +60 -54
- package/src/ts/react-website/app/files/common/constructs/src/app/static-websites/__websiteNameKebabCase__.ts.template +1 -0
- package/src/ts/react-website/app/files/common/constructs/src/core/static-website.ts.template +3 -2
- package/src/ts/react-website/app/generator.js +1 -1
- package/src/ts/react-website/app/generator.js.map +1 -1
- package/src/ts/react-website/runtime-config/__snapshots__/generator.spec.ts.snap +5 -5
- package/src/utils/__snapshots__/shared-constructs.spec.ts.snap +5 -5
- package/src/utils/files/common/constructs/src/core/runtime-config.ts.template +5 -5
- package/src/utils/versions.d.ts +61 -61
- package/src/utils/versions.js +60 -60
- package/src/utils/versions.js.map +1 -1
package/package.json
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`infra generator > should add required dependencies to package.json > dependencies 1`] = `
|
|
4
4
|
{
|
|
5
|
-
"@cdklabs/cdk-validator-cfnguard": "
|
|
6
|
-
"aws-cdk": "
|
|
7
|
-
"aws-cdk-lib": "
|
|
8
|
-
"constructs": "
|
|
9
|
-
"esbuild": "
|
|
10
|
-
"source-map-support": "
|
|
5
|
+
"@cdklabs/cdk-validator-cfnguard": "0.0.60",
|
|
6
|
+
"aws-cdk": "2.1027.0",
|
|
7
|
+
"aws-cdk-lib": "2.213.0",
|
|
8
|
+
"constructs": "10.4.2",
|
|
9
|
+
"esbuild": "0.25.9",
|
|
10
|
+
"source-map-support": "0.5.21",
|
|
11
11
|
}
|
|
12
12
|
`;
|
|
13
13
|
|
|
@@ -22,16 +22,16 @@ exports[`infra generator > should add required dependencies to package.json > de
|
|
|
22
22
|
"@swc-node/register": "~1.9.1",
|
|
23
23
|
"@swc/core": "~1.5.7",
|
|
24
24
|
"@swc/helpers": "~0.5.11",
|
|
25
|
-
"@types/node": "
|
|
25
|
+
"@types/node": "22.18.0",
|
|
26
26
|
"@vitest/coverage-v8": "^3.0.5",
|
|
27
27
|
"@vitest/ui": "^3.0.0",
|
|
28
28
|
"eslint": "^9.8.0",
|
|
29
29
|
"eslint-config-prettier": "^10.0.0",
|
|
30
|
-
"eslint-plugin-prettier": "
|
|
30
|
+
"eslint-plugin-prettier": "5.5.4",
|
|
31
31
|
"jiti": "2.4.2",
|
|
32
32
|
"jsdom": "~22.1.0",
|
|
33
|
-
"jsonc-eslint-parser": "
|
|
34
|
-
"prettier": "
|
|
33
|
+
"jsonc-eslint-parser": "2.4.0",
|
|
34
|
+
"prettier": "3.6.2",
|
|
35
35
|
"tsx": "4.20.1",
|
|
36
36
|
"typescript": "~5.8.2",
|
|
37
37
|
"typescript-eslint": "^8.29.0",
|
|
@@ -43,12 +43,12 @@ exports[`infra generator > should add required dependencies to package.json > de
|
|
|
43
43
|
exports[`infra generator > should add required dependencies to package.json > package-json 1`] = `
|
|
44
44
|
{
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@cdklabs/cdk-validator-cfnguard": "
|
|
47
|
-
"aws-cdk": "
|
|
48
|
-
"aws-cdk-lib": "
|
|
49
|
-
"constructs": "
|
|
50
|
-
"esbuild": "
|
|
51
|
-
"source-map-support": "
|
|
46
|
+
"@cdklabs/cdk-validator-cfnguard": "0.0.60",
|
|
47
|
+
"aws-cdk": "2.1027.0",
|
|
48
|
+
"aws-cdk-lib": "2.213.0",
|
|
49
|
+
"constructs": "10.4.2",
|
|
50
|
+
"esbuild": "0.25.9",
|
|
51
|
+
"source-map-support": "0.5.21",
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@eslint/js": "^9.8.0",
|
|
@@ -60,16 +60,16 @@ exports[`infra generator > should add required dependencies to package.json > pa
|
|
|
60
60
|
"@swc-node/register": "~1.9.1",
|
|
61
61
|
"@swc/core": "~1.5.7",
|
|
62
62
|
"@swc/helpers": "~0.5.11",
|
|
63
|
-
"@types/node": "
|
|
63
|
+
"@types/node": "22.18.0",
|
|
64
64
|
"@vitest/coverage-v8": "^3.0.5",
|
|
65
65
|
"@vitest/ui": "^3.0.0",
|
|
66
66
|
"eslint": "^9.8.0",
|
|
67
67
|
"eslint-config-prettier": "^10.0.0",
|
|
68
|
-
"eslint-plugin-prettier": "
|
|
68
|
+
"eslint-plugin-prettier": "5.5.4",
|
|
69
69
|
"jiti": "2.4.2",
|
|
70
70
|
"jsdom": "~22.1.0",
|
|
71
|
-
"jsonc-eslint-parser": "
|
|
72
|
-
"prettier": "
|
|
71
|
+
"jsonc-eslint-parser": "2.4.0",
|
|
72
|
+
"prettier": "3.6.2",
|
|
73
73
|
"tsx": "4.20.1",
|
|
74
74
|
"typescript": "~5.8.2",
|
|
75
75
|
"typescript-eslint": "^8.29.0",
|
|
@@ -285,7 +285,7 @@ exports[`infra generator > should generate consistent file content across runs >
|
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
",
|
|
288
|
-
"src/main.ts": "import {
|
|
288
|
+
"src/main.ts": "import { ApplicationStage } from './stages/application-stage.js';
|
|
289
289
|
import { App, CfnGuardValidator, RuleSet } from ':proj/common-constructs';
|
|
290
290
|
|
|
291
291
|
const app = new App({
|
|
@@ -293,36 +293,52 @@ const app = new App({
|
|
|
293
293
|
});
|
|
294
294
|
|
|
295
295
|
// Use this to deploy your own sandbox environment (assumes your CLI credentials)
|
|
296
|
-
new
|
|
296
|
+
new ApplicationStage(app, 'proj-test-sandbox', {
|
|
297
297
|
env: {
|
|
298
298
|
account: process.env.CDK_DEFAULT_ACCOUNT,
|
|
299
299
|
region: process.env.CDK_DEFAULT_REGION,
|
|
300
300
|
},
|
|
301
|
-
crossRegionReferences: true,
|
|
302
301
|
});
|
|
303
302
|
|
|
304
303
|
app.synth();
|
|
305
304
|
",
|
|
306
|
-
"src/stacks/application-stack.ts": "import
|
|
305
|
+
"src/stacks/application-stack.ts": "import { Stack, StackProps } from 'aws-cdk-lib';
|
|
307
306
|
import { Construct } from 'constructs';
|
|
308
307
|
|
|
309
|
-
export class ApplicationStack extends
|
|
310
|
-
constructor(scope: Construct, id: string, props?:
|
|
308
|
+
export class ApplicationStack extends Stack {
|
|
309
|
+
constructor(scope: Construct, id: string, props?: StackProps) {
|
|
311
310
|
super(scope, id, props);
|
|
312
311
|
|
|
313
312
|
// The code that defines your stack goes here
|
|
314
313
|
}
|
|
315
314
|
}
|
|
315
|
+
",
|
|
316
|
+
"src/stages/application-stage.ts": "import { Stage, StageProps } from 'aws-cdk-lib';
|
|
317
|
+
import { Construct } from 'constructs';
|
|
318
|
+
import { ApplicationStack } from '../stacks/application-stack.js';
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Defines a collection of CDK Stacks which make up your application
|
|
322
|
+
*/
|
|
323
|
+
export class ApplicationStage extends Stage {
|
|
324
|
+
constructor(scope: Construct, id: string, props?: StageProps) {
|
|
325
|
+
super(scope, id, props);
|
|
326
|
+
|
|
327
|
+
new ApplicationStack(this, 'Application', {
|
|
328
|
+
crossRegionReferences: true,
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
}
|
|
316
332
|
",
|
|
317
333
|
}
|
|
318
334
|
`;
|
|
319
335
|
|
|
320
336
|
exports[`infra generator > should generate files with correct content > application-stack-ts 1`] = `
|
|
321
|
-
"import
|
|
337
|
+
"import { Stack, StackProps } from 'aws-cdk-lib';
|
|
322
338
|
import { Construct } from 'constructs';
|
|
323
339
|
|
|
324
|
-
export class ApplicationStack extends
|
|
325
|
-
constructor(scope: Construct, id: string, props?:
|
|
340
|
+
export class ApplicationStack extends Stack {
|
|
341
|
+
constructor(scope: Construct, id: string, props?: StackProps) {
|
|
326
342
|
super(scope, id, props);
|
|
327
343
|
|
|
328
344
|
// The code that defines your stack goes here
|
|
@@ -331,6 +347,26 @@ export class ApplicationStack extends cdk.Stack {
|
|
|
331
347
|
"
|
|
332
348
|
`;
|
|
333
349
|
|
|
350
|
+
exports[`infra generator > should generate files with correct content > application-stage-ts 1`] = `
|
|
351
|
+
"import { Stage, StageProps } from 'aws-cdk-lib';
|
|
352
|
+
import { Construct } from 'constructs';
|
|
353
|
+
import { ApplicationStack } from '../stacks/application-stack.js';
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Defines a collection of CDK Stacks which make up your application
|
|
357
|
+
*/
|
|
358
|
+
export class ApplicationStage extends Stage {
|
|
359
|
+
constructor(scope: Construct, id: string, props?: StageProps) {
|
|
360
|
+
super(scope, id, props);
|
|
361
|
+
|
|
362
|
+
new ApplicationStack(this, 'Application', {
|
|
363
|
+
crossRegionReferences: true,
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
"
|
|
368
|
+
`;
|
|
369
|
+
|
|
334
370
|
exports[`infra generator > should generate files with correct content > cdk-json 1`] = `
|
|
335
371
|
"{
|
|
336
372
|
"app": "tsx src/main.ts",
|
|
@@ -403,7 +439,7 @@ exports[`infra generator > should generate files with correct content > cdk-json
|
|
|
403
439
|
`;
|
|
404
440
|
|
|
405
441
|
exports[`infra generator > should generate files with correct content > main-ts 1`] = `
|
|
406
|
-
"import {
|
|
442
|
+
"import { ApplicationStage } from './stages/application-stage.js';
|
|
407
443
|
import { App, CfnGuardValidator, RuleSet } from ':proj/common-constructs';
|
|
408
444
|
|
|
409
445
|
const app = new App({
|
|
@@ -411,23 +447,22 @@ const app = new App({
|
|
|
411
447
|
});
|
|
412
448
|
|
|
413
449
|
// Use this to deploy your own sandbox environment (assumes your CLI credentials)
|
|
414
|
-
new
|
|
450
|
+
new ApplicationStage(app, 'proj-test-sandbox', {
|
|
415
451
|
env: {
|
|
416
452
|
account: process.env.CDK_DEFAULT_ACCOUNT,
|
|
417
453
|
region: process.env.CDK_DEFAULT_REGION,
|
|
418
454
|
},
|
|
419
|
-
crossRegionReferences: true,
|
|
420
455
|
});
|
|
421
456
|
|
|
422
457
|
app.synth();
|
|
423
458
|
"
|
|
424
459
|
`;
|
|
425
460
|
|
|
426
|
-
exports[`infra generator > should
|
|
461
|
+
exports[`infra generator > should handle custom project names correctly > custom-name-files 1`] = `
|
|
427
462
|
{
|
|
428
463
|
"cdk.json": "{
|
|
429
464
|
"app": "tsx src/main.ts",
|
|
430
|
-
"output": "../../dist/packages/
|
|
465
|
+
"output": "../../dist/packages/custom-infra/cdk.out",
|
|
431
466
|
"watch": {
|
|
432
467
|
"include": ["**"],
|
|
433
468
|
"exclude": [
|
|
@@ -493,91 +528,7 @@ exports[`infra generator > should generate files with correct content > project-
|
|
|
493
528
|
}
|
|
494
529
|
}
|
|
495
530
|
",
|
|
496
|
-
"
|
|
497
|
-
"name": "@proj/test",
|
|
498
|
-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
499
|
-
"sourceRoot": "packages/test/src",
|
|
500
|
-
"projectType": "application",
|
|
501
|
-
"tags": [],
|
|
502
|
-
"metadata": {
|
|
503
|
-
"generator": "ts#infra"
|
|
504
|
-
},
|
|
505
|
-
"targets": {
|
|
506
|
-
"bootstrap": {
|
|
507
|
-
"executor": "nx:run-commands",
|
|
508
|
-
"options": {
|
|
509
|
-
"cwd": "packages/test",
|
|
510
|
-
"command": "cdk bootstrap"
|
|
511
|
-
}
|
|
512
|
-
},
|
|
513
|
-
"build": {
|
|
514
|
-
"dependsOn": ["lint", "compile", "test", "synth"]
|
|
515
|
-
},
|
|
516
|
-
"cdk": {
|
|
517
|
-
"executor": "nx:run-commands",
|
|
518
|
-
"options": {
|
|
519
|
-
"cwd": "packages/test",
|
|
520
|
-
"command": "cdk"
|
|
521
|
-
}
|
|
522
|
-
},
|
|
523
|
-
"compile": {
|
|
524
|
-
"executor": "nx:run-commands",
|
|
525
|
-
"outputs": ["{workspaceRoot}/dist/packages/test/tsc"],
|
|
526
|
-
"options": {
|
|
527
|
-
"command": "tsc --build tsconfig.lib.json",
|
|
528
|
-
"cwd": "{projectRoot}"
|
|
529
|
-
}
|
|
530
|
-
},
|
|
531
|
-
"deploy": {
|
|
532
|
-
"executor": "nx:run-commands",
|
|
533
|
-
"options": {
|
|
534
|
-
"cwd": "packages/test",
|
|
535
|
-
"command": "cdk deploy --require-approval=never"
|
|
536
|
-
}
|
|
537
|
-
},
|
|
538
|
-
"deploy-ci": {
|
|
539
|
-
"executor": "nx:run-commands",
|
|
540
|
-
"options": {
|
|
541
|
-
"cwd": "packages/test",
|
|
542
|
-
"command": "cdk deploy --require-approval=never --app ../../dist/packages/test/cdk.out"
|
|
543
|
-
}
|
|
544
|
-
},
|
|
545
|
-
"destroy": {
|
|
546
|
-
"executor": "nx:run-commands",
|
|
547
|
-
"options": {
|
|
548
|
-
"cwd": "packages/test",
|
|
549
|
-
"command": "cdk destroy --require-approval=never"
|
|
550
|
-
}
|
|
551
|
-
},
|
|
552
|
-
"destroy-ci": {
|
|
553
|
-
"executor": "nx:run-commands",
|
|
554
|
-
"options": {
|
|
555
|
-
"cwd": "packages/test",
|
|
556
|
-
"command": "cdk destroy --require-approval=never --app ../../dist/packages/test/cdk.out"
|
|
557
|
-
}
|
|
558
|
-
},
|
|
559
|
-
"synth": {
|
|
560
|
-
"cache": true,
|
|
561
|
-
"executor": "nx:run-commands",
|
|
562
|
-
"inputs": ["default"],
|
|
563
|
-
"outputs": ["{workspaceRoot}/dist/packages/test/cdk.out"],
|
|
564
|
-
"dependsOn": ["^build", "compile"],
|
|
565
|
-
"options": {
|
|
566
|
-
"cwd": "packages/test",
|
|
567
|
-
"command": "cdk synth"
|
|
568
|
-
}
|
|
569
|
-
},
|
|
570
|
-
"test": {
|
|
571
|
-
"executor": "@nx/vite:test",
|
|
572
|
-
"outputs": ["{options.reportsDirectory}"],
|
|
573
|
-
"options": {
|
|
574
|
-
"reportsDirectory": "../../coverage/packages/test"
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
",
|
|
580
|
-
"src/main.ts": "import { ApplicationStack } from './stacks/application-stack.js';
|
|
531
|
+
"src/main.ts": "import { ApplicationStage } from './stages/application-stage.js';
|
|
581
532
|
import { App, CfnGuardValidator, RuleSet } from ':proj/common-constructs';
|
|
582
533
|
|
|
583
534
|
const app = new App({
|
|
@@ -585,236 +536,40 @@ const app = new App({
|
|
|
585
536
|
});
|
|
586
537
|
|
|
587
538
|
// Use this to deploy your own sandbox environment (assumes your CLI credentials)
|
|
588
|
-
new
|
|
539
|
+
new ApplicationStage(app, 'proj-custom-infra-sandbox', {
|
|
589
540
|
env: {
|
|
590
541
|
account: process.env.CDK_DEFAULT_ACCOUNT,
|
|
591
542
|
region: process.env.CDK_DEFAULT_REGION,
|
|
592
543
|
},
|
|
593
|
-
crossRegionReferences: true,
|
|
594
544
|
});
|
|
595
545
|
|
|
596
546
|
app.synth();
|
|
597
547
|
",
|
|
598
|
-
"src/stacks/application-stack.ts": "import
|
|
599
|
-
import { Construct } from 'constructs';
|
|
600
|
-
|
|
601
|
-
export class ApplicationStack extends cdk.Stack {
|
|
602
|
-
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
|
|
603
|
-
super(scope, id, props);
|
|
604
|
-
|
|
605
|
-
// The code that defines your stack goes here
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
",
|
|
609
|
-
}
|
|
610
|
-
`;
|
|
611
|
-
|
|
612
|
-
exports[`infra generator > should generate valid CDK application code > cdk-json-content 1`] = `
|
|
613
|
-
{
|
|
614
|
-
"app": "tsx src/main.ts",
|
|
615
|
-
"context": {
|
|
616
|
-
"@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true,
|
|
617
|
-
"@aws-cdk/aws-apigateway:authorizerChangeDeploymentLogicalId": true,
|
|
618
|
-
"@aws-cdk/aws-apigateway:disableCloudWatchRole": true,
|
|
619
|
-
"@aws-cdk/aws-apigateway:requestValidatorUniqueId": true,
|
|
620
|
-
"@aws-cdk/aws-appsync:useArnForSourceApiAssociationIdentifier": true,
|
|
621
|
-
"@aws-cdk/aws-autoscaling:generateLaunchTemplateInsteadOfLaunchConfig": true,
|
|
622
|
-
"@aws-cdk/aws-cloudwatch-actions:changeLambdaPermissionLogicalIdForLambdaAction": true,
|
|
623
|
-
"@aws-cdk/aws-codedeploy:removeAlarmsFromDeploymentGroup": true,
|
|
624
|
-
"@aws-cdk/aws-codepipeline-actions:useNewDefaultBranchForCodeCommitSource": true,
|
|
625
|
-
"@aws-cdk/aws-codepipeline:crossAccountKeyAliasStackSafeResourceName": true,
|
|
626
|
-
"@aws-cdk/aws-codepipeline:crossAccountKeysDefaultValueToFalse": true,
|
|
627
|
-
"@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2": true,
|
|
628
|
-
"@aws-cdk/aws-ec2:ebsDefaultGp3Volume": true,
|
|
629
|
-
"@aws-cdk/aws-ec2:launchTemplateDefaultUserData": true,
|
|
630
|
-
"@aws-cdk/aws-ec2:restrictDefaultSecurityGroup": true,
|
|
631
|
-
"@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true,
|
|
632
|
-
"@aws-cdk/aws-ecs:arnFormatIncludesClusterName": true,
|
|
633
|
-
"@aws-cdk/aws-ecs:disableExplicitDeploymentControllerForCircuitBreaker": true,
|
|
634
|
-
"@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm": true,
|
|
635
|
-
"@aws-cdk/aws-efs:denyAnonymousAccess": true,
|
|
636
|
-
"@aws-cdk/aws-efs:mountTargetOrderInsensitiveLogicalId": true,
|
|
637
|
-
"@aws-cdk/aws-eks:nodegroupNameAttribute": true,
|
|
638
|
-
"@aws-cdk/aws-events:eventsTargetQueueSameAccount": true,
|
|
639
|
-
"@aws-cdk/aws-iam:importedRoleStackSafeDefaultPolicyName": true,
|
|
640
|
-
"@aws-cdk/aws-iam:minimizePolicies": true,
|
|
641
|
-
"@aws-cdk/aws-kms:aliasNameRef": true,
|
|
642
|
-
"@aws-cdk/aws-kms:reduceCrossAccountRegionPolicyScope": true,
|
|
643
|
-
"@aws-cdk/aws-lambda-nodejs:useLatestRuntimeVersion": true,
|
|
644
|
-
"@aws-cdk/aws-lambda:recognizeLayerVersion": true,
|
|
645
|
-
"@aws-cdk/aws-opensearchservice:enableOpensearchMultiAzWithStandby": true,
|
|
646
|
-
"@aws-cdk/aws-rds:auroraClusterChangeScopeOfInstanceParameterGroupWithEachParameters": true,
|
|
647
|
-
"@aws-cdk/aws-rds:databaseProxyUniqueResourceName": true,
|
|
648
|
-
"@aws-cdk/aws-rds:preventRenderingDeprecatedCredentials": true,
|
|
649
|
-
"@aws-cdk/aws-redshift:columnId": true,
|
|
650
|
-
"@aws-cdk/aws-route53-patters:useCertificate": true,
|
|
651
|
-
"@aws-cdk/aws-s3:createDefaultLoggingPolicy": true,
|
|
652
|
-
"@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy": true,
|
|
653
|
-
"@aws-cdk/aws-secretsmanager:useAttachedSecretResourcePolicyForSecretTargetAttachments": true,
|
|
654
|
-
"@aws-cdk/aws-sns-subscriptions:restrictSqsDescryption": true,
|
|
655
|
-
"@aws-cdk/aws-stepfunctions-tasks:enableEmrServicePolicyV2": true,
|
|
656
|
-
"@aws-cdk/core:checkSecretUsage": true,
|
|
657
|
-
"@aws-cdk/core:enablePartitionLiterals": true,
|
|
658
|
-
"@aws-cdk/core:includePrefixInUniqueNameGeneration": true,
|
|
659
|
-
"@aws-cdk/core:target-partitions": [
|
|
660
|
-
"aws",
|
|
661
|
-
"aws-cn",
|
|
662
|
-
],
|
|
663
|
-
"@aws-cdk/core:validateSnapshotRemovalPolicy": true,
|
|
664
|
-
"@aws-cdk/custom-resources:logApiResponseDataPropertyTrueDefault": false,
|
|
665
|
-
"@aws-cdk/customresources:installLatestAwsSdkDefault": false,
|
|
666
|
-
},
|
|
667
|
-
"output": "../../dist/packages/test/cdk.out",
|
|
668
|
-
"watch": {
|
|
669
|
-
"exclude": [
|
|
670
|
-
"README.md",
|
|
671
|
-
"cdk*.json",
|
|
672
|
-
"**/*.d.ts",
|
|
673
|
-
"**/*.js",
|
|
674
|
-
"tsconfig.json",
|
|
675
|
-
"package*.json",
|
|
676
|
-
"yarn.lock",
|
|
677
|
-
"node_modules",
|
|
678
|
-
"test",
|
|
679
|
-
],
|
|
680
|
-
"include": [
|
|
681
|
-
"**",
|
|
682
|
-
],
|
|
683
|
-
},
|
|
684
|
-
}
|
|
685
|
-
`;
|
|
686
|
-
|
|
687
|
-
exports[`infra generator > should generate valid CDK application code > main-ts-content 1`] = `
|
|
688
|
-
"import { ApplicationStack } from './stacks/application-stack.js';
|
|
689
|
-
import { App, CfnGuardValidator, RuleSet } from ':proj/common-constructs';
|
|
690
|
-
|
|
691
|
-
const app = new App({
|
|
692
|
-
policyValidationBeta1: [new CfnGuardValidator(RuleSet.AWS_PROTOTYPING)],
|
|
693
|
-
});
|
|
694
|
-
|
|
695
|
-
// Use this to deploy your own sandbox environment (assumes your CLI credentials)
|
|
696
|
-
new ApplicationStack(app, 'proj-infra-sandbox', {
|
|
697
|
-
env: {
|
|
698
|
-
account: process.env.CDK_DEFAULT_ACCOUNT,
|
|
699
|
-
region: process.env.CDK_DEFAULT_REGION,
|
|
700
|
-
},
|
|
701
|
-
crossRegionReferences: true,
|
|
702
|
-
});
|
|
703
|
-
|
|
704
|
-
app.synth();
|
|
705
|
-
"
|
|
706
|
-
`;
|
|
707
|
-
|
|
708
|
-
exports[`infra generator > should generate valid CDK application code > stack-ts-content 1`] = `
|
|
709
|
-
"import * as cdk from 'aws-cdk-lib';
|
|
548
|
+
"src/stacks/application-stack.ts": "import { Stack, StackProps } from 'aws-cdk-lib';
|
|
710
549
|
import { Construct } from 'constructs';
|
|
711
550
|
|
|
712
|
-
export class ApplicationStack extends
|
|
713
|
-
constructor(scope: Construct, id: string, props?:
|
|
551
|
+
export class ApplicationStack extends Stack {
|
|
552
|
+
constructor(scope: Construct, id: string, props?: StackProps) {
|
|
714
553
|
super(scope, id, props);
|
|
715
554
|
|
|
716
555
|
// The code that defines your stack goes here
|
|
717
556
|
}
|
|
718
557
|
}
|
|
719
|
-
"
|
|
720
|
-
`;
|
|
721
|
-
|
|
722
|
-
exports[`infra generator > should handle custom project names correctly > custom-name-files 1`] = `
|
|
723
|
-
{
|
|
724
|
-
"cdk.json": "{
|
|
725
|
-
"app": "tsx src/main.ts",
|
|
726
|
-
"output": "../../dist/packages/custom-infra/cdk.out",
|
|
727
|
-
"watch": {
|
|
728
|
-
"include": ["**"],
|
|
729
|
-
"exclude": [
|
|
730
|
-
"README.md",
|
|
731
|
-
"cdk*.json",
|
|
732
|
-
"**/*.d.ts",
|
|
733
|
-
"**/*.js",
|
|
734
|
-
"tsconfig.json",
|
|
735
|
-
"package*.json",
|
|
736
|
-
"yarn.lock",
|
|
737
|
-
"node_modules",
|
|
738
|
-
"test"
|
|
739
|
-
]
|
|
740
|
-
},
|
|
741
|
-
"context": {
|
|
742
|
-
"@aws-cdk/aws-lambda:recognizeLayerVersion": true,
|
|
743
|
-
"@aws-cdk/core:checkSecretUsage": true,
|
|
744
|
-
"@aws-cdk/core:target-partitions": ["aws", "aws-cn"],
|
|
745
|
-
"@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true,
|
|
746
|
-
"@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true,
|
|
747
|
-
"@aws-cdk/aws-ecs:arnFormatIncludesClusterName": true,
|
|
748
|
-
"@aws-cdk/aws-iam:minimizePolicies": true,
|
|
749
|
-
"@aws-cdk/core:validateSnapshotRemovalPolicy": true,
|
|
750
|
-
"@aws-cdk/aws-codepipeline:crossAccountKeyAliasStackSafeResourceName": true,
|
|
751
|
-
"@aws-cdk/aws-s3:createDefaultLoggingPolicy": true,
|
|
752
|
-
"@aws-cdk/aws-sns-subscriptions:restrictSqsDescryption": true,
|
|
753
|
-
"@aws-cdk/aws-apigateway:disableCloudWatchRole": true,
|
|
754
|
-
"@aws-cdk/core:enablePartitionLiterals": true,
|
|
755
|
-
"@aws-cdk/aws-events:eventsTargetQueueSameAccount": true,
|
|
756
|
-
"@aws-cdk/aws-ecs:disableExplicitDeploymentControllerForCircuitBreaker": true,
|
|
757
|
-
"@aws-cdk/aws-iam:importedRoleStackSafeDefaultPolicyName": true,
|
|
758
|
-
"@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy": true,
|
|
759
|
-
"@aws-cdk/aws-route53-patters:useCertificate": true,
|
|
760
|
-
"@aws-cdk/customresources:installLatestAwsSdkDefault": false,
|
|
761
|
-
"@aws-cdk/aws-rds:databaseProxyUniqueResourceName": true,
|
|
762
|
-
"@aws-cdk/aws-codedeploy:removeAlarmsFromDeploymentGroup": true,
|
|
763
|
-
"@aws-cdk/aws-apigateway:authorizerChangeDeploymentLogicalId": true,
|
|
764
|
-
"@aws-cdk/aws-ec2:launchTemplateDefaultUserData": true,
|
|
765
|
-
"@aws-cdk/aws-secretsmanager:useAttachedSecretResourcePolicyForSecretTargetAttachments": true,
|
|
766
|
-
"@aws-cdk/aws-redshift:columnId": true,
|
|
767
|
-
"@aws-cdk/aws-stepfunctions-tasks:enableEmrServicePolicyV2": true,
|
|
768
|
-
"@aws-cdk/aws-ec2:restrictDefaultSecurityGroup": true,
|
|
769
|
-
"@aws-cdk/aws-apigateway:requestValidatorUniqueId": true,
|
|
770
|
-
"@aws-cdk/aws-kms:aliasNameRef": true,
|
|
771
|
-
"@aws-cdk/aws-autoscaling:generateLaunchTemplateInsteadOfLaunchConfig": true,
|
|
772
|
-
"@aws-cdk/core:includePrefixInUniqueNameGeneration": true,
|
|
773
|
-
"@aws-cdk/aws-efs:denyAnonymousAccess": true,
|
|
774
|
-
"@aws-cdk/aws-opensearchservice:enableOpensearchMultiAzWithStandby": true,
|
|
775
|
-
"@aws-cdk/aws-lambda-nodejs:useLatestRuntimeVersion": true,
|
|
776
|
-
"@aws-cdk/aws-efs:mountTargetOrderInsensitiveLogicalId": true,
|
|
777
|
-
"@aws-cdk/aws-rds:auroraClusterChangeScopeOfInstanceParameterGroupWithEachParameters": true,
|
|
778
|
-
"@aws-cdk/aws-appsync:useArnForSourceApiAssociationIdentifier": true,
|
|
779
|
-
"@aws-cdk/aws-rds:preventRenderingDeprecatedCredentials": true,
|
|
780
|
-
"@aws-cdk/aws-codepipeline-actions:useNewDefaultBranchForCodeCommitSource": true,
|
|
781
|
-
"@aws-cdk/aws-cloudwatch-actions:changeLambdaPermissionLogicalIdForLambdaAction": true,
|
|
782
|
-
"@aws-cdk/aws-codepipeline:crossAccountKeysDefaultValueToFalse": true,
|
|
783
|
-
"@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2": true,
|
|
784
|
-
"@aws-cdk/aws-kms:reduceCrossAccountRegionPolicyScope": true,
|
|
785
|
-
"@aws-cdk/aws-eks:nodegroupNameAttribute": true,
|
|
786
|
-
"@aws-cdk/aws-ec2:ebsDefaultGp3Volume": true,
|
|
787
|
-
"@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm": true,
|
|
788
|
-
"@aws-cdk/custom-resources:logApiResponseDataPropertyTrueDefault": false
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
558
|
",
|
|
792
|
-
"src/
|
|
793
|
-
import { App, CfnGuardValidator, RuleSet } from ':proj/common-constructs';
|
|
794
|
-
|
|
795
|
-
const app = new App({
|
|
796
|
-
policyValidationBeta1: [new CfnGuardValidator(RuleSet.AWS_PROTOTYPING)],
|
|
797
|
-
});
|
|
798
|
-
|
|
799
|
-
// Use this to deploy your own sandbox environment (assumes your CLI credentials)
|
|
800
|
-
new ApplicationStack(app, 'proj-infra-sandbox', {
|
|
801
|
-
env: {
|
|
802
|
-
account: process.env.CDK_DEFAULT_ACCOUNT,
|
|
803
|
-
region: process.env.CDK_DEFAULT_REGION,
|
|
804
|
-
},
|
|
805
|
-
crossRegionReferences: true,
|
|
806
|
-
});
|
|
807
|
-
|
|
808
|
-
app.synth();
|
|
809
|
-
",
|
|
810
|
-
"src/stacks/application-stack.ts": "import * as cdk from 'aws-cdk-lib';
|
|
559
|
+
"src/stages/application-stage.ts": "import { Stage, StageProps } from 'aws-cdk-lib';
|
|
811
560
|
import { Construct } from 'constructs';
|
|
561
|
+
import { ApplicationStack } from '../stacks/application-stack.js';
|
|
812
562
|
|
|
813
|
-
|
|
814
|
-
|
|
563
|
+
/**
|
|
564
|
+
* Defines a collection of CDK Stacks which make up your application
|
|
565
|
+
*/
|
|
566
|
+
export class ApplicationStage extends Stage {
|
|
567
|
+
constructor(scope: Construct, id: string, props?: StageProps) {
|
|
815
568
|
super(scope, id, props);
|
|
816
569
|
|
|
817
|
-
|
|
570
|
+
new ApplicationStack(this, 'Application', {
|
|
571
|
+
crossRegionReferences: true,
|
|
572
|
+
});
|
|
818
573
|
}
|
|
819
574
|
}
|
|
820
575
|
",
|
|
@@ -72,5 +72,5 @@ suppressRule(construct, 'RULE_NAME', (construct) => construct instanceof Bucket)
|
|
|
72
72
|
|
|
73
73
|
## Useful links
|
|
74
74
|
|
|
75
|
-
- [Infra reference docs](
|
|
75
|
+
- [Infra reference docs](https://awslabs.github.io/nx-plugin-for-aws/en/guides/typescript-infrastructure/)
|
|
76
76
|
- [Learn more about NX](https://nx.dev/getting-started/intro)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ApplicationStage } from './stages/application-stage.js';
|
|
2
2
|
import { App, CfnGuardValidator, RuleSet } from '<%= scopeAlias %>common-constructs';
|
|
3
3
|
|
|
4
4
|
const app = new App({
|
|
@@ -6,12 +6,11 @@ const app = new App({
|
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
// Use this to deploy your own sandbox environment (assumes your CLI credentials)
|
|
9
|
-
new
|
|
9
|
+
new ApplicationStage(app, '<%= namespace %>-sandbox', {
|
|
10
10
|
env: {
|
|
11
11
|
account: process.env.CDK_DEFAULT_ACCOUNT,
|
|
12
12
|
region: process.env.CDK_DEFAULT_REGION,
|
|
13
13
|
},
|
|
14
|
-
crossRegionReferences: true
|
|
15
14
|
});
|
|
16
15
|
|
|
17
16
|
app.synth();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Stack, StackProps } from 'aws-cdk-lib';
|
|
2
2
|
import { Construct } from 'constructs';
|
|
3
3
|
|
|
4
|
-
export class ApplicationStack extends
|
|
5
|
-
constructor(scope: Construct, id: string, props?:
|
|
4
|
+
export class ApplicationStack extends Stack {
|
|
5
|
+
constructor(scope: Construct, id: string, props?: StackProps) {
|
|
6
6
|
super(scope, id, props);
|
|
7
7
|
|
|
8
8
|
// The code that defines your stack goes here
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Stage, StageProps } from 'aws-cdk-lib';
|
|
2
|
+
import { Construct } from 'constructs';
|
|
3
|
+
import { ApplicationStack } from '../stacks/application-stack.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Defines a collection of CDK Stacks which make up your application
|
|
7
|
+
*/
|
|
8
|
+
export class ApplicationStage extends Stage {
|
|
9
|
+
constructor(scope: Construct, id: string, props?: StageProps) {
|
|
10
|
+
super(scope, id, props);
|
|
11
|
+
|
|
12
|
+
new ApplicationStack(this, 'Application', {
|
|
13
|
+
crossRegionReferences: true,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -40,7 +40,7 @@ function tsInfraGenerator(tree, schema) {
|
|
|
40
40
|
tree.delete((0, devkit_1.joinPathFragments)(libraryRoot, 'src'));
|
|
41
41
|
(0, devkit_1.generateFiles)(tree, // the virtual file system
|
|
42
42
|
(0, devkit_1.joinPathFragments)(__dirname, './files/app'), // path to the file templates
|
|
43
|
-
libraryRoot, Object.assign(Object.assign({ synthDir: synthDirFromProject, scopeAlias: scopeAlias, namespace: (0, names_1.kebabCase)(
|
|
43
|
+
libraryRoot, Object.assign(Object.assign({ synthDir: synthDirFromProject, scopeAlias: scopeAlias, namespace: (0, names_1.kebabCase)(fullyQualifiedName), fullyQualifiedName, pkgMgrCmd: (0, devkit_1.getPackageManagerCommand)().exec }, schema), { ruleSet: schema.ruleSet.toUpperCase() }), {
|
|
44
44
|
overwriteStrategy: devkit_1.OverwriteStrategy.Overwrite,
|
|
45
45
|
});
|
|
46
46
|
(0, devkit_1.generateFiles)(tree, // the virtual file system
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/infra/app/generator.ts"],"names":[],"mappings":";;;AAyCA,4CAkKC;;AA3MD;;;GAGG;AACH,uCAYoB;AAEpB,4EAA6E;AAC7E,mDAAoD;AACpD,qDAAwE;AACxE,qEAA0E;AAC1E,yFAGiD;AACjD,yCAAgD;AAChD,wDAAwB;AACxB,+CAA0D;AAC1D,+CAAoD;AACpD,uCAIwB;AACxB,iDAAsE;AACtE,6CAA8C;AAEjC,QAAA,wBAAwB,GACnC,IAAA,qBAAgB,EAAC,UAAU,CAAC,CAAC;AAE/B,SAAsB,gBAAgB,CACpC,IAAU,EACV,MAA8B;;QAE9B,MAAM,GAAG,GAAG,IAAA,2BAAe,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC1C,MAAM,IAAA,mBAAkB,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAEvC,IAAA,yBAAoB,EAAC,IAAI,EAAE,GAAG,CAAC,kBAAkB,EAAE,gCAAwB,CAAC,CAAC;QAE7E,MAAM,IAAA,6CAAyB,EAAC,IAAI,CAAC,CAAC;QAEtC,MAAM,gBAAgB,GAAG,SAAS,GAAG,CAAC,GAAG,UAAU,CAAC;QACpD,MAAM,mBAAmB,GACvB,GAAG,CAAC,GAAG;aACJ,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC;aACf,IAAI,CAAC,GAAG,CAAC,GAAG,gBAAgB,CAAC;QAClC,MAAM,aAAa,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,GAAG,CAAC,kBAAkB,CAAC,CAAC;QAC7E,MAAM,WAAW,GAAG,aAAa,CAAC,IAAI,CAAC;QACvC,MAAM,cAAc,GAAG,IAAA,6BAAiB,EAAC,IAAI,CAAC,CAAC;QAC/C,MAAM,UAAU,GAAG,IAAA,wBAAY,EAAC,cAAc,CAAC,CAAC;QAChD,MAAM,kBAAkB,GAAG,GAAG,cAAc,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC;QAC7D,IAAI,CAAC,MAAM,CAAC,IAAA,0BAAiB,EAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;QACnD,IAAA,sBAAa,EACX,IAAI,EAAE,0BAA0B;QAChC,IAAA,0BAAiB,EAAC,SAAS,EAAE,aAAa,CAAC,EAAE,6BAA6B;QAC1E,WAAW,gCAET,QAAQ,EAAE,mBAAmB,EAC7B,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,IAAA,iBAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/infra/app/generator.ts"],"names":[],"mappings":";;;AAyCA,4CAkKC;;AA3MD;;;GAGG;AACH,uCAYoB;AAEpB,4EAA6E;AAC7E,mDAAoD;AACpD,qDAAwE;AACxE,qEAA0E;AAC1E,yFAGiD;AACjD,yCAAgD;AAChD,wDAAwB;AACxB,+CAA0D;AAC1D,+CAAoD;AACpD,uCAIwB;AACxB,iDAAsE;AACtE,6CAA8C;AAEjC,QAAA,wBAAwB,GACnC,IAAA,qBAAgB,EAAC,UAAU,CAAC,CAAC;AAE/B,SAAsB,gBAAgB,CACpC,IAAU,EACV,MAA8B;;QAE9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BAAY,EAAC;YACX,iCAAiC;YACjC,aAAa;YACb,SAAS;YACT,SAAS;YACT,YAAY;YACZ,oBAAoB;SACrB,CAAC,EACF,IAAA,uBAAY,EAAC,CAAC,KAAK,CAAC,CAAC,CACtB,CAAC;QAEF,IAAA,mBAAU,EAAC,IAAI,EAAE,GAAG,WAAW,gBAAgB,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,iCAC1D,QAAQ,KACX,UAAU,EAAE;gBACV,GAAG,CAAC,QAAQ,CAAC,UAAU,IAAI,EAAE,CAAC;gBAC9B;oBACE,IAAI,EAAE,GAAG,cAAI,CAAC,QAAQ,CACpB,WAAW,EACX,GAAG,IAAI,CAAC,IAAI,IAAI,0CAAY,EAAE,CAC/B,IAAI,mDAAqB,gBAAgB;iBAC3C;aACF,IACD,CAAC,CAAC;QAEJ,MAAM,IAAA,yCAA+B,EAAC,IAAI,EAAE,CAAC,gCAAwB,CAAC,CAAC,CAAC;QAExE,MAAM,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAC;QACjC,OAAO,GAAG,EAAE;YACV,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;QAC5B,CAAC,CAAC;IACJ,CAAC;CAAA;AACD,kBAAe,gBAAgB,CAAC"}
|
|
@@ -329,9 +329,9 @@ exports[`py#mcp-server generator > should match snapshot for generated files > u
|
|
|
329
329
|
name = "proj.test_project"
|
|
330
330
|
version = "0.1.0"
|
|
331
331
|
dependencies = [
|
|
332
|
-
"mcp
|
|
333
|
-
"boto3
|
|
334
|
-
"aws-opentelemetry-distro
|
|
332
|
+
"mcp==1.13.1",
|
|
333
|
+
"boto3==1.40.20",
|
|
334
|
+
"aws-opentelemetry-distro==0.12.0"
|
|
335
335
|
]
|
|
336
336
|
|
|
337
337
|
[dependency-groups]
|