@mettlecast/domain-cdk-packer 0.2.37 → 0.2.38

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.
@@ -29,6 +29,8 @@ export interface DomainStackProps extends cdk.StackProps {
29
29
  lambdaSg?: ec2.ISecurityGroup;
30
30
  /** Shared HTTP API Gateway — when provided, domain routes are added here instead of creating a separate API. */
31
31
  httpApi?: apigwv2.IHttpApi;
32
+ /** Path to domain source root — required for dedicated Lambdas. Defaults to ../../domains/{domainId}. */
33
+ domainRoot?: string;
32
34
  /** Enable CMK encryption for DynamoDB, S3, SQS. */
33
35
  enableCmk?: boolean;
34
36
  /** Enable WAF WebACL on the domain API Gateway. */
@@ -61,6 +61,7 @@ export class DomainStack extends cdk.Stack {
61
61
  super(scope, id, props);
62
62
  const { registry, eventBusArn, eventBusName, databaseUrl, dbSecretArn, userPoolArn, userPoolId, userPoolClientId, vpc, lambdaSg, httpApi, enableCmk, enableWaf, enableAlarms, alarmSnsTopicArn, enableCanaryDeploy, reservedConcurrency, logRetentionDays, corsAllowedOrigins, allowCredentials } = props;
63
63
  const domainId = registry.domain.id;
64
+ const domainRoot = props.domainRoot ?? "../../domains/" + domainId;
64
65
  const vpcProps = vpc ? { vpc, securityGroups: lambdaSg ? [lambdaSg] : undefined } : {};
65
66
  const allowedOrigins = corsAllowedOrigins ?? ['*'];
66
67
  this.httpApi = httpApi ?? new apigwv2.HttpApi(this, 'HttpApi', {
@@ -165,6 +166,7 @@ export class DomainStack extends cdk.Stack {
165
166
  environment,
166
167
  eventBusArn,
167
168
  dedicated: true,
169
+ domainRoot,
168
170
  reservedConcurrency,
169
171
  logRetentionDays: logRetentionDays ?? 30,
170
172
  ...vpcProps,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mettlecast/domain-cdk-packer",
3
- "version": "0.2.37",
3
+ "version": "0.2.38",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org",