Second initial commit.
This commit is contained in:
parent
915a8b1d65
commit
25655713d6
3
.gitignore
vendored
3
.gitignore
vendored
@ -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
7
.prettierrc
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"arrowParens": "avoid",
|
||||||
|
"semi": true,
|
||||||
|
"singleQuote": true,
|
||||||
|
"tabWidth": 4,
|
||||||
|
"trailingComma": "none"
|
||||||
|
}
|
||||||
12
README.md
12
README.md
@ -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
|
||||||
|
|||||||
@ -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 */
|
||||||
});
|
});
|
||||||
|
|||||||
10
cdk.json
10
cdk.json
@ -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,
|
||||||
|
|||||||
@ -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
5234
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,7 +10,6 @@ test('SQS Queue Created', () => {
|
|||||||
// 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
|
||||||
// });
|
// });
|
||||||
|
|||||||
@ -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"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user