@gradientedge/cdk-utils 4.11.3 → 4.12.1
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/construct/api-to-eventbridge-target/main.js +1 -1
- package/dist/src/lib/construct/site-with-ecs-backend/main.js +4 -3
- package/dist/src/lib/manager/aws/event-manager.js +2 -0
- package/package.json +12 -12
- package/src/lib/construct/api-to-eventbridge-target/main.ts +1 -1
- package/src/lib/construct/site-with-ecs-backend/main.ts +4 -3
- package/src/lib/manager/aws/event-manager.ts +2 -0
|
@@ -592,7 +592,7 @@ class ApiToEventBridgeTarget extends common_1.CommonConstruct {
|
|
|
592
592
|
createApiDomain() {
|
|
593
593
|
if (this.props.api.useExisting)
|
|
594
594
|
return;
|
|
595
|
-
this.apiDestinedRestApi.domain = this.apiManager.createApiDomain(`${this.id}-api-domain`, this, this.isProductionStage()
|
|
595
|
+
this.apiDestinedRestApi.domain = this.apiManager.createApiDomain(`${this.id}-api-domain`, this, this.isProductionStage() || this.props.skipStageForARecords
|
|
596
596
|
? `${this.props.apiSubDomain}.${this.fullyQualifiedDomainName}`
|
|
597
597
|
: `${this.props.apiSubDomain}-${this.props.stage}.${this.fullyQualifiedDomainName}`, this.apiDestinedRestApi.certificate);
|
|
598
598
|
}
|
|
@@ -147,9 +147,10 @@ class SiteWithEcsBackend extends common_1.CommonConstruct {
|
|
|
147
147
|
? `${this.props.siteSubDomain}-internal.${this.fullyQualifiedDomainName}`
|
|
148
148
|
: `${this.props.siteSubDomain}-internal-${this.props.stage}.${this.fullyQualifiedDomainName}`;
|
|
149
149
|
/* the external domain name exposed to CloudFront */
|
|
150
|
-
this.siteExternalDomainName =
|
|
151
|
-
|
|
152
|
-
|
|
150
|
+
this.siteExternalDomainName =
|
|
151
|
+
this.isProductionStage() || this.props.skipStageForARecords
|
|
152
|
+
? `${this.props.siteSubDomain}.${this.fullyQualifiedDomainName}`
|
|
153
|
+
: `${this.props.siteSubDomain}-${this.props.stage}.${this.fullyQualifiedDomainName}`;
|
|
153
154
|
this.siteDomainNames = [this.siteExternalDomainName];
|
|
154
155
|
}
|
|
155
156
|
/**
|
|
@@ -81,6 +81,8 @@ class EventManager {
|
|
|
81
81
|
description: props.description,
|
|
82
82
|
ruleName: `${props.ruleName}-${scope.props.stage}`,
|
|
83
83
|
eventPattern: props.eventPattern,
|
|
84
|
+
enabled: props.enabled,
|
|
85
|
+
schedule: props.schedule,
|
|
84
86
|
});
|
|
85
87
|
if (targets && targets.length > 0) {
|
|
86
88
|
targets.forEach(target => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradientedge/cdk-utils",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.12.1",
|
|
4
4
|
"description": "Utilities for AWS CDK provisioning",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"engines": {
|
|
@@ -45,31 +45,31 @@
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@aws-cdk/aws-lambda-python-alpha": "2.
|
|
49
|
-
"@types/lodash": "^4.14.
|
|
48
|
+
"@aws-cdk/aws-lambda-python-alpha": "2.16.0-alpha.0",
|
|
49
|
+
"@types/lodash": "^4.14.180",
|
|
50
50
|
"@types/node": "^17.0.21",
|
|
51
51
|
"app-root-path": "^3.0.0",
|
|
52
|
-
"aws-cdk-lib": "^2.
|
|
53
|
-
"aws-sdk": "^2.
|
|
54
|
-
"constructs": "^10.0.
|
|
52
|
+
"aws-cdk-lib": "^2.16.0",
|
|
53
|
+
"aws-sdk": "^2.1093.0",
|
|
54
|
+
"constructs": "^10.0.88",
|
|
55
55
|
"lodash": "^4.17.21",
|
|
56
56
|
"moment": "^2.29.1",
|
|
57
57
|
"nconf": "^0.11.3",
|
|
58
58
|
"pluralize": "^8.0.0",
|
|
59
|
-
"ts-node": "^10.
|
|
59
|
+
"ts-node": "^10.7.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
63
63
|
"@types/jest": "^27.4.1",
|
|
64
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
65
|
-
"@typescript-eslint/parser": "^5.
|
|
64
|
+
"@typescript-eslint/eslint-plugin": "^5.15.0",
|
|
65
|
+
"@typescript-eslint/parser": "^5.15.0",
|
|
66
66
|
"aws-cdk": "*",
|
|
67
67
|
"babel-eslint": "^10.1.0",
|
|
68
68
|
"better-docs": "^2.7.2",
|
|
69
69
|
"codecov": "^3.8.3",
|
|
70
70
|
"commitizen": "^4.2.4",
|
|
71
71
|
"dotenv": "^16.0.0",
|
|
72
|
-
"eslint": "^8.
|
|
72
|
+
"eslint": "^8.11.0",
|
|
73
73
|
"eslint-config-prettier": "^8.5.0",
|
|
74
74
|
"eslint-plugin-import": "^2.25.4",
|
|
75
75
|
"husky": "^7.0.4",
|
|
@@ -85,11 +85,11 @@
|
|
|
85
85
|
"rimraf": "^3.0.2",
|
|
86
86
|
"semantic-release": "^19.0.2",
|
|
87
87
|
"ts-jest": "^27.1.3",
|
|
88
|
-
"ts-node": "^10.
|
|
88
|
+
"ts-node": "^10.7.0",
|
|
89
89
|
"typescript": "4.6.2"
|
|
90
90
|
},
|
|
91
91
|
"optionalDependencies": {
|
|
92
|
-
"@babel/core": "^7.17.
|
|
92
|
+
"@babel/core": "^7.17.7",
|
|
93
93
|
"prop-types": "^15.8.1",
|
|
94
94
|
"react": "^17.0.2",
|
|
95
95
|
"react-dom": "^17.0.2"
|
|
@@ -655,7 +655,7 @@ export class ApiToEventBridgeTarget extends CommonConstruct {
|
|
|
655
655
|
this.apiDestinedRestApi.domain = this.apiManager.createApiDomain(
|
|
656
656
|
`${this.id}-api-domain`,
|
|
657
657
|
this,
|
|
658
|
-
this.isProductionStage()
|
|
658
|
+
this.isProductionStage() || this.props.skipStageForARecords
|
|
659
659
|
? `${this.props.apiSubDomain}.${this.fullyQualifiedDomainName}`
|
|
660
660
|
: `${this.props.apiSubDomain}-${this.props.stage}.${this.fullyQualifiedDomainName}`,
|
|
661
661
|
this.apiDestinedRestApi.certificate
|
|
@@ -155,9 +155,10 @@ export class SiteWithEcsBackend extends CommonConstruct {
|
|
|
155
155
|
: `${this.props.siteSubDomain}-internal-${this.props.stage}.${this.fullyQualifiedDomainName}`
|
|
156
156
|
|
|
157
157
|
/* the external domain name exposed to CloudFront */
|
|
158
|
-
this.siteExternalDomainName =
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
this.siteExternalDomainName =
|
|
159
|
+
this.isProductionStage() || this.props.skipStageForARecords
|
|
160
|
+
? `${this.props.siteSubDomain}.${this.fullyQualifiedDomainName}`
|
|
161
|
+
: `${this.props.siteSubDomain}-${this.props.stage}.${this.fullyQualifiedDomainName}`
|
|
161
162
|
|
|
162
163
|
this.siteDomainNames = [this.siteExternalDomainName]
|
|
163
164
|
}
|