Second initial commit.

This commit is contained in:
Jesse Brault 2026-01-08 16:47:33 -06:00
parent 915a8b1d65
commit 25655713d6
11 changed files with 5428 additions and 198 deletions

3
.gitignore vendored
View File

@ -6,3 +6,6 @@ node_modules
# CDK asset staging directory # CDK asset staging directory
.cdk.staging .cdk.staging
cdk.out cdk.out
# IDEA
.idea

7
.prettierrc Normal file
View File

@ -0,0 +1,7 @@
{
"arrowParens": "avoid",
"semi": true,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "none"
}

View File

@ -6,9 +6,9 @@ The `cdk.json` file tells the CDK Toolkit how to execute your app.
## Useful commands ## Useful commands
* `npm run build` compile typescript to js - `npm run build` compile typescript to js
* `npm run watch` watch for changes and compile - `npm run watch` watch for changes and compile
* `npm run test` perform the jest unit tests - `npm run test` perform the jest unit tests
* `npx cdk deploy` deploy this stack to your default AWS account/region - `npx cdk deploy` deploy this stack to your default AWS account/region
* `npx cdk diff` compare deployed stack with current state - `npx cdk diff` compare deployed stack with current state
* `npx cdk synth` emits the synthesized CloudFormation template - `npx cdk synth` emits the synthesized CloudFormation template

View File

@ -7,14 +7,11 @@ new JbApiAwsStack(app, 'JbApiAwsStack', {
/* If you don't specify 'env', this stack will be environment-agnostic. /* If you don't specify 'env', this stack will be environment-agnostic.
* Account/Region-dependent features and context lookups will not work, * Account/Region-dependent features and context lookups will not work,
* but a single synthesized template can be deployed anywhere. */ * but a single synthesized template can be deployed anywhere. */
/* Uncomment the next line to specialize this stack for the AWS Account /* Uncomment the next line to specialize this stack for the AWS Account
* and Region that are implied by the current CLI configuration. */ * and Region that are implied by the current CLI configuration. */
// env: { account: process.env.CDK_DEFAULT_ACCOUNT, region: process.env.CDK_DEFAULT_REGION }, // env: { account: process.env.CDK_DEFAULT_ACCOUNT, region: process.env.CDK_DEFAULT_REGION },
/* Uncomment the next line if you know exactly what Account and Region you /* Uncomment the next line if you know exactly what Account and Region you
* want to deploy the stack to. */ * want to deploy the stack to. */
// env: { account: '123456789012', region: 'us-east-1' }, // env: { account: '123456789012', region: 'us-east-1' },
/* For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html */ /* For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html */
}); });

View File

@ -1,9 +1,7 @@
{ {
"app": "npx ts-node --prefer-ts-exts bin/jb-api-aws.ts", "app": "npx ts-node --prefer-ts-exts bin/jb-api-aws.ts",
"watch": { "watch": {
"include": [ "include": ["**"],
"**"
],
"exclude": [ "exclude": [
"README.md", "README.md",
"cdk*.json", "cdk*.json",
@ -17,14 +15,12 @@
] ]
}, },
"context": { "context": {
"cli-telemetry": false,
"@aws-cdk/aws-signer:signingProfileNamePassedToCfn": true, "@aws-cdk/aws-signer:signingProfileNamePassedToCfn": true,
"@aws-cdk/aws-ecs-patterns:secGroupsDisablesImplicitOpenListener": true, "@aws-cdk/aws-ecs-patterns:secGroupsDisablesImplicitOpenListener": true,
"@aws-cdk/aws-lambda:recognizeLayerVersion": true, "@aws-cdk/aws-lambda:recognizeLayerVersion": true,
"@aws-cdk/core:checkSecretUsage": true, "@aws-cdk/core:checkSecretUsage": true,
"@aws-cdk/core:target-partitions": [ "@aws-cdk/core:target-partitions": ["aws", "aws-cn"],
"aws",
"aws-cn"
],
"@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true, "@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true,
"@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true, "@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true,
"@aws-cdk/aws-ecs:arnFormatIncludesClusterName": true, "@aws-cdk/aws-ecs:arnFormatIncludesClusterName": true,

View File

@ -5,5 +5,5 @@ module.exports = {
transform: { transform: {
'^.+\\.tsx?$': 'ts-jest' '^.+\\.tsx?$': 'ts-jest'
}, },
setupFilesAfterEnv: ['aws-cdk-lib/testhelpers/jest-autoclean'], setupFilesAfterEnv: ['aws-cdk-lib/testhelpers/jest-autoclean']
}; };

5234
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -13,14 +13,15 @@
"devDependencies": { "devDependencies": {
"@types/jest": "^30", "@types/jest": "^30",
"@types/node": "^24.10.1", "@types/node": "^24.10.1",
"aws-cdk": "2.1100.3",
"jest": "^30", "jest": "^30",
"ts-jest": "^29", "ts-jest": "^29",
"aws-cdk": "2.1100.3",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"typescript": "~5.9.3" "typescript": "~5.9.3"
}, },
"dependencies": { "dependencies": {
"aws-cdk-lib": "^2.232.2", "aws-cdk-lib": "^2.232.2",
"constructs": "^10.0.0" "constructs": "^10.0.0",
"prettier": "^3.7.4"
} }
} }

View File

@ -5,13 +5,12 @@
// example test. To run these tests, uncomment this file along with the // example test. To run these tests, uncomment this file along with the
// example resource in lib/jb-api-aws-stack.ts // example resource in lib/jb-api-aws-stack.ts
test('SQS Queue Created', () => { test('SQS Queue Created', () => {
// const app = new cdk.App(); // const app = new cdk.App();
// // WHEN // // WHEN
// const stack = new JbApiAws.JbApiAwsStack(app, 'MyTestStack'); // const stack = new JbApiAws.JbApiAwsStack(app, 'MyTestStack');
// // THEN // // THEN
// const template = Template.fromStack(stack); // const template = Template.fromStack(stack);
// template.hasResourceProperties('AWS::SQS::Queue', {
// template.hasResourceProperties('AWS::SQS::Queue', { // VisibilityTimeout: 300
// VisibilityTimeout: 300 // });
// });
}); });

View File

@ -3,9 +3,7 @@
"target": "ES2022", "target": "ES2022",
"module": "NodeNext", "module": "NodeNext",
"moduleResolution": "NodeNext", "moduleResolution": "NodeNext",
"lib": [ "lib": ["es2022"],
"es2022"
],
"declaration": true, "declaration": true,
"strict": true, "strict": true,
"noImplicitAny": true, "noImplicitAny": true,
@ -21,12 +19,7 @@
"experimentalDecorators": true, "experimentalDecorators": true,
"strictPropertyInitialization": false, "strictPropertyInitialization": false,
"skipLibCheck": true, "skipLibCheck": true,
"typeRoots": [ "typeRoots": ["./node_modules/@types"]
"./node_modules/@types"
]
}, },
"exclude": [ "exclude": ["node_modules", "cdk.out"]
"node_modules",
"cdk.out"
]
} }