@mettlecast/domain-cdk-packer 0.2.36 → 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.
- package/dist/DomainStack.d.ts +2 -0
- package/dist/DomainStack.js +2 -0
- package/package.json +1 -1
package/dist/DomainStack.d.ts
CHANGED
|
@@ -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. */
|
package/dist/DomainStack.js
CHANGED
|
@@ -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,
|