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.
Files changed (2) hide show
  1. package/lambda.js +3 -1
  2. 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 || "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dcl-ops-lib",
3
- "version": "5.25.1",
3
+ "version": "5.25.2",
4
4
  "scripts": {
5
5
  "build": "tsc && cp bin/* . && node test.js",
6
6
  "clean": "rm *.d.ts *.js *.js.map"