dcl-ops-lib 5.25.1 → 5.25.2
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/lambda.js +3 -1
- package/package.json +1 -1
package/lambda.js
CHANGED
|
@@ -116,12 +116,14 @@ function configureApiGatewayDomain(fullyQualifiedDomainName, gateway) {
|
|
|
116
116
|
const webDomain = new aws.apigateway.DomainName((0, stack_1.getStackScopedName)(subdomain + "-dn"), {
|
|
117
117
|
certificateArn: (0, certificate_1.getCertificateFor)(fullyQualifiedDomainName),
|
|
118
118
|
domainName: fullyQualifiedDomainName,
|
|
119
|
+
}, {
|
|
120
|
+
deleteBeforeReplace: true,
|
|
119
121
|
});
|
|
120
122
|
const webDomainMapping = new aws.apigateway.BasePathMapping((0, stack_1.getStackScopedName)(subdomain + "-bpm"), {
|
|
121
123
|
restApi: gateway.restAPI,
|
|
122
124
|
stageName: gateway.stage.stageName,
|
|
123
125
|
domainName: webDomain.id,
|
|
124
|
-
});
|
|
126
|
+
}, { dependsOn: [webDomain], deleteBeforeReplace: true });
|
|
125
127
|
const hostedZone = yield aws.route53.getZone({ name: domainParts.parentDomain }, { async: true });
|
|
126
128
|
const record = new aws.route53.Record((0, stack_1.getStackScopedName)(fullyQualifiedDomainName), {
|
|
127
129
|
name: domainParts.subdomain || "",
|