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.staging
|
||||
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
|
||||
|
||||
* `npm run build` compile typescript to js
|
||||
* `npm run watch` watch for changes and compile
|
||||
* `npm run test` perform the jest unit tests
|
||||
* `npx cdk deploy` deploy this stack to your default AWS account/region
|
||||
* `npx cdk diff` compare deployed stack with current state
|
||||
* `npx cdk synth` emits the synthesized CloudFormation template
|
||||
- `npm run build` compile typescript to js
|
||||
- `npm run watch` watch for changes and compile
|
||||
- `npm run test` perform the jest unit tests
|
||||
- `npx cdk deploy` deploy this stack to your default AWS account/region
|
||||
- `npx cdk diff` compare deployed stack with current state
|
||||
- `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.
|
||||
* Account/Region-dependent features and context lookups will not work,
|
||||
* but a single synthesized template can be deployed anywhere. */
|
||||
|
||||
/* Uncomment the next line to specialize this stack for the AWS Account
|
||||
* and Region that are implied by the current CLI configuration. */
|
||||
// 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
|
||||
* want to deploy the stack to. */
|
||||
// env: { account: '123456789012', region: 'us-east-1' },
|
||||
|
||||
/* 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",
|
||||
"watch": {
|
||||
"include": [
|
||||
"**"
|
||||
],
|
||||
"include": ["**"],
|
||||
"exclude": [
|
||||
"README.md",
|
||||
"cdk*.json",
|
||||
@ -17,14 +15,12 @@
|
||||
]
|
||||
},
|
||||
"context": {
|
||||
"cli-telemetry": false,
|
||||
"@aws-cdk/aws-signer:signingProfileNamePassedToCfn": true,
|
||||
"@aws-cdk/aws-ecs-patterns:secGroupsDisablesImplicitOpenListener": true,
|
||||
"@aws-cdk/aws-lambda:recognizeLayerVersion": true,
|
||||
"@aws-cdk/core:checkSecretUsage": true,
|
||||
"@aws-cdk/core:target-partitions": [
|
||||
"aws",
|
||||
"aws-cn"
|
||||
],
|
||||
"@aws-cdk/core:target-partitions": ["aws", "aws-cn"],
|
||||
"@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true,
|
||||
"@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true,
|
||||
"@aws-cdk/aws-ecs:arnFormatIncludesClusterName": true,
|
||||
|
||||
@ -5,5 +5,5 @@ module.exports = {
|
||||
transform: {
|
||||
'^.+\\.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": {
|
||||
"@types/jest": "^30",
|
||||
"@types/node": "^24.10.1",
|
||||
"aws-cdk": "2.1100.3",
|
||||
"jest": "^30",
|
||||
"ts-jest": "^29",
|
||||
"aws-cdk": "2.1100.3",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "~5.9.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"aws-cdk-lib": "^2.232.2",
|
||||
"constructs": "^10.0.0"
|
||||
"constructs": "^10.0.0",
|
||||
"prettier": "^3.7.4"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,13 +5,12 @@
|
||||
// example test. To run these tests, uncomment this file along with the
|
||||
// example resource in lib/jb-api-aws-stack.ts
|
||||
test('SQS Queue Created', () => {
|
||||
// const app = new cdk.App();
|
||||
// // WHEN
|
||||
// const stack = new JbApiAws.JbApiAwsStack(app, 'MyTestStack');
|
||||
// // THEN
|
||||
// const template = Template.fromStack(stack);
|
||||
|
||||
// template.hasResourceProperties('AWS::SQS::Queue', {
|
||||
// VisibilityTimeout: 300
|
||||
// });
|
||||
// const app = new cdk.App();
|
||||
// // WHEN
|
||||
// const stack = new JbApiAws.JbApiAwsStack(app, 'MyTestStack');
|
||||
// // THEN
|
||||
// const template = Template.fromStack(stack);
|
||||
// template.hasResourceProperties('AWS::SQS::Queue', {
|
||||
// VisibilityTimeout: 300
|
||||
// });
|
||||
});
|
||||
|
||||
@ -3,9 +3,7 @@
|
||||
"target": "ES2022",
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"lib": [
|
||||
"es2022"
|
||||
],
|
||||
"lib": ["es2022"],
|
||||
"declaration": true,
|
||||
"strict": true,
|
||||
"noImplicitAny": true,
|
||||
@ -21,12 +19,7 @@
|
||||
"experimentalDecorators": true,
|
||||
"strictPropertyInitialization": false,
|
||||
"skipLibCheck": true,
|
||||
"typeRoots": [
|
||||
"./node_modules/@types"
|
||||
]
|
||||
"typeRoots": ["./node_modules/@types"]
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"cdk.out"
|
||||
]
|
||||
"exclude": ["node_modules", "cdk.out"]
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user