Skip to content

Commit

Permalink
Issue-227 - Rename CDK packages
Browse files Browse the repository at this point in the history
  • Loading branch information
huntharo committed Jan 1, 2025
1 parent ea6126f commit fa9d182
Show file tree
Hide file tree
Showing 10 changed files with 112 additions and 106 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"build": "tsc --build tsconfig.json",
"build:demo-app": "yarn workspace @pwrdrvr/lambda-dispatch-demo-app build",
"start:demo-app": "yarn workspace @pwrdrvr/lambda-dispatch-demo-app start:app",
"test": "yarn workspace @pwrdrvr/lambda-dispatch-construct test && yarn workspace @pwrdrvr/lambda-dispatch-stack test"
"test": "yarn workspace @pwrdrvr/lambda-dispatch-cdk test && yarn workspace @pwrdrvr/lambda-dispatch-cdk-stack test"
},
"author": "",
"license": "MIT"
Expand Down
4 changes: 2 additions & 2 deletions src/cdk-construct/.projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const project = new awscdk.AwsCdkConstructLibrary({
cdkVersion: '2.130.0',
defaultReleaseBranch: 'main',
jsiiVersion: '~5.5.0',
name: '@pwrdrvr/lambda-dispatch-construct',
name: '@pwrdrvr/lambda-dispatch-cdk',
projenrcTs: true,
repositoryUrl: 'https://github.com/harold/cdk-construct.git',
repositoryUrl: 'https://github.com/pwrdrvr/lambda-dispatch.git',

// deps: [], /* Runtime dependencies of this module. */
// description: undefined, /* The description is just a string that helps people understand the purpose of the package. */
Expand Down
168 changes: 84 additions & 84 deletions src/cdk-construct/API.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/cdk-construct/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/cdk-stack/.projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/cdk-stack/.projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/cdk-stack/.projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import { awscdk } from 'projen';
const project = new awscdk.AwsCdkTypeScriptApp({
cdkVersion: '2.130.0',
defaultReleaseBranch: 'main',
name: '@pwrdrvr/lambda-dispatch-stack',
name: '@pwrdrvr/lambda-dispatch-cdk-stack',
projenrcTs: true,
repository: 'https://github.com/pwrdrvr/lambda-dispatch.git',

deps: [
'[email protected]',
'@pwrdrvr/lambda-dispatch-construct@*',
'@pwrdrvr/lambda-dispatch-cdk@*',
] /* Runtime dependencies of this module. */,
// description: undefined, /* The description is just a string that helps people understand the purpose of the package. */
// devDeps: [], /* Build dependencies for this module. */
Expand Down
8 changes: 6 additions & 2 deletions src/cdk-stack/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 10 additions & 9 deletions src/cdk-stack/src/lambda-dispatch-stack.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LambdaDispatchFunction, LambdaDispatchECS } from '@pwrdrvr/lambda-dispatch-construct';
import { LambdaDispatchFunction, LambdaDispatchECS } from '@pwrdrvr/lambda-dispatch-cdk';
import * as cdk from 'aws-cdk-lib';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as ecr from 'aws-cdk-lib/aws-ecr';
Expand Down Expand Up @@ -141,14 +141,15 @@ export class LambdaDispatchStack extends cdk.Stack {
vpc,
architecture: lambda.Architecture.ARM_64,
memorySize: 1769,
dockerImage: !usePublicImages && (props.lambdaECRRepoName || props.lambdaImageTag)
? lambda.DockerImageCode.fromEcr(
ecr.Repository.fromRepositoryName(this, 'LambdaRepo', lambdaECRRepoName),
{
tagOrDigest: lambdaTag,
},
)
: undefined,
dockerImage:
!usePublicImages && (props.lambdaECRRepoName || props.lambdaImageTag)
? lambda.DockerImageCode.fromEcr(
ecr.Repository.fromRepositoryName(this, 'LambdaRepo', lambdaECRRepoName),
{
tagOrDigest: lambdaTag,
},
)
: undefined,
});

// Create ECS construct
Expand Down
2 changes: 1 addition & 1 deletion src/cdk-stack/test/__snapshots__/main.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fa9d182

Please sign in to comment.