Skip to content

Commit

Permalink
Update dist file
Browse files Browse the repository at this point in the history
  • Loading branch information
tmshkr committed Jan 3, 2024
1 parent 9ce0c22 commit 2afc07e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -234094,7 +234094,7 @@ function removeTargetGroups(inputs) {
RuleArn: ResourceArn,
Actions: handleActions(rule.Actions),
}));
console.log(`Updated ${inputs.stagingCNAME} rule: ${ResourceArn}`);
console.log(`Set ${inputs.stagingCNAME} fixed-response rule: ${ResourceArn}`);
}
}
}
Expand All @@ -234104,7 +234104,7 @@ function updateTargetGroups(inputs) {
var _a, _b, _c;
return updateListenerRules_awaiter(this, void 0, void 0, function* () {
const { prodEnv, stagingEnv } = yield getEnvironments(inputs);
const environments = [prodEnv, stagingEnv].filter((env) => (env === null || env === void 0 ? void 0 : env.Status) === "Ready");
const environments = [prodEnv, stagingEnv].filter((env) => (env === null || env === void 0 ? void 0 : env.Status) === "Ready" && (env === null || env === void 0 ? void 0 : env.Health) === "Green");
const resources = yield getEnvironmentResources(environments);
const rules = yield getRules(resources);
const targetGroupARNs = yield findTargetGroupArns(inputs, environments, resources);
Expand All @@ -234131,10 +234131,10 @@ function updateTargetGroups(inputs) {
RuleArn: ResourceArn,
Actions: handleActions(rule.Actions, targetGroupArn),
}));
console.log(`Updated ${cname} rule: ${ResourceArn}`);
console.log(`${cname} -> ${targetGroupArn.split("/")[1]}:${port}`);
}
else {
console.warn(`No target group found for ${cname} from ${ResourceArn}`);
console.warn(`No target group found for ${cname} on ${ResourceArn}`);
}
}
});
Expand Down Expand Up @@ -234168,7 +234168,7 @@ function findTargetGroupArns(inputs, environments, resources) {
TargetGroupArns: Array.from(targetGroupARNs),
}))
.then(({ TargetGroups }) => {
for (const { TargetGroupArn, Port } of TargetGroups) {
for (const { Port, TargetGroupArn } of TargetGroups) {
result[CNAME][Port] = TargetGroupArn;
}
});
Expand Down

0 comments on commit 2afc07e

Please sign in to comment.