@gradientedge/cdk-utils 8.5.0 → 8.7.0
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/src/lib/common/stack.d.ts +1 -0
- package/dist/src/lib/common/stack.js +1 -0
- package/dist/src/lib/manager/aws/elasticache-manager.js +8 -2
- package/dist/src/lib/manager/aws/lambda-manager.js +1 -0
- package/dist/src/lib/types/aws/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/lib/common/stack.ts +1 -0
- package/src/lib/manager/aws/elasticache-manager.ts +13 -2
- package/src/lib/manager/aws/lambda-manager.ts +1 -0
- package/src/lib/types/aws/index.ts +1 -0
|
@@ -73,6 +73,7 @@ class CommonStack extends cdk.Stack {
|
|
|
73
73
|
subDomain: this.node.tryGetContext('subDomain'),
|
|
74
74
|
extraContexts: this.node.tryGetContext('extraContexts'),
|
|
75
75
|
skipStageForARecords: this.node.tryGetContext('skipStageForARecords'),
|
|
76
|
+
logRetention: this.node.tryGetContext('logRetention'),
|
|
76
77
|
};
|
|
77
78
|
}
|
|
78
79
|
/**
|
|
@@ -137,8 +137,14 @@ class ElastiCacheManager {
|
|
|
137
137
|
autoMinorVersionUpgrade: props.autoMinorVersionUpgrade,
|
|
138
138
|
});
|
|
139
139
|
elasticacheCluster.addDependency(subnetGroup);
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
if (elasticacheCluster.attrPrimaryEndPointAddress) {
|
|
141
|
+
utils.createCfnOutput(`${id}-primaryEndPointAddress`, scope, elasticacheCluster.attrPrimaryEndPointAddress);
|
|
142
|
+
utils.createCfnOutput(`${id}-primaryEndPointPort`, scope, elasticacheCluster.attrPrimaryEndPointPort);
|
|
143
|
+
}
|
|
144
|
+
if (elasticacheCluster.attrConfigurationEndPointAddress) {
|
|
145
|
+
utils.createCfnOutput(`${id}-configurationEndPointAddress`, scope, elasticacheCluster.attrConfigurationEndPointAddress);
|
|
146
|
+
utils.createCfnOutput(`${id}-configurationEndPointPort`, scope, elasticacheCluster.attrConfigurationEndPointPort);
|
|
147
|
+
}
|
|
142
148
|
return elasticacheCluster;
|
|
143
149
|
}
|
|
144
150
|
}
|
|
@@ -115,6 +115,7 @@ class LambdaManager {
|
|
|
115
115
|
? lambda.FileSystem.fromEfsAccessPoint(accessPoint, mountPath || '/mnt/msg')
|
|
116
116
|
: undefined,
|
|
117
117
|
layers: layers,
|
|
118
|
+
logRetention: scope.props.logRetention ?? props.logRetention,
|
|
118
119
|
reservedConcurrentExecutions: props.reservedConcurrentExecutions,
|
|
119
120
|
role: role instanceof iam.Role ? role : undefined,
|
|
120
121
|
securityGroups: securityGroups,
|
package/package.json
CHANGED
package/src/lib/common/stack.ts
CHANGED
|
@@ -56,6 +56,7 @@ export class CommonStack extends cdk.Stack {
|
|
|
56
56
|
subDomain: this.node.tryGetContext('subDomain'),
|
|
57
57
|
extraContexts: this.node.tryGetContext('extraContexts'),
|
|
58
58
|
skipStageForARecords: this.node.tryGetContext('skipStageForARecords'),
|
|
59
|
+
logRetention: this.node.tryGetContext('logRetention'),
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
62
|
|
|
@@ -137,8 +137,19 @@ export class ElastiCacheManager {
|
|
|
137
137
|
|
|
138
138
|
elasticacheCluster.addDependency(subnetGroup)
|
|
139
139
|
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
if (elasticacheCluster.attrPrimaryEndPointAddress) {
|
|
141
|
+
utils.createCfnOutput(`${id}-primaryEndPointAddress`, scope, elasticacheCluster.attrPrimaryEndPointAddress)
|
|
142
|
+
utils.createCfnOutput(`${id}-primaryEndPointPort`, scope, elasticacheCluster.attrPrimaryEndPointPort)
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
if (elasticacheCluster.attrConfigurationEndPointAddress) {
|
|
146
|
+
utils.createCfnOutput(
|
|
147
|
+
`${id}-configurationEndPointAddress`,
|
|
148
|
+
scope,
|
|
149
|
+
elasticacheCluster.attrConfigurationEndPointAddress
|
|
150
|
+
)
|
|
151
|
+
utils.createCfnOutput(`${id}-configurationEndPointPort`, scope, elasticacheCluster.attrConfigurationEndPointPort)
|
|
152
|
+
}
|
|
142
153
|
|
|
143
154
|
return elasticacheCluster
|
|
144
155
|
}
|
|
@@ -118,6 +118,7 @@ export class LambdaManager {
|
|
|
118
118
|
? lambda.FileSystem.fromEfsAccessPoint(accessPoint, mountPath || '/mnt/msg')
|
|
119
119
|
: undefined,
|
|
120
120
|
layers: layers,
|
|
121
|
+
logRetention: scope.props.logRetention ?? props.logRetention,
|
|
121
122
|
reservedConcurrentExecutions: props.reservedConcurrentExecutions,
|
|
122
123
|
role: role instanceof iam.Role ? role : undefined,
|
|
123
124
|
securityGroups: securityGroups,
|