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 2, 2024
1 parent 655689a commit f3d2eac
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
const environments = [prodEnv, stagingEnv].filter((env) => (env === null || env === void 0 ? void 0 : env.Status) === "Ready");
const resources = yield getEnvironmentResources(environments);
const rules = yield getRules(resources);
const targetGroupARNs = yield findTargetGroupArns(inputs, environments, resources);
Expand Down Expand Up @@ -234215,14 +234215,11 @@ function getRules(resources) {
if (loadBalancerArns.size > 1) {
throw new Error("Environments must use the same load balancer");
}
const loadBalancerArn = Array.from(loadBalancerArns)[0];
const listeners = [];
yield elbv2Client.send(new client_elastic_load_balancing_v2_dist_cjs.DescribeListenersCommand({
LoadBalancerArn: loadBalancerArn,
}))
.then(({ Listeners }) => listeners.push(...Listeners));
const { Listeners } = yield elbv2Client.send(new client_elastic_load_balancing_v2_dist_cjs.DescribeListenersCommand({
LoadBalancerArn: Array.from(loadBalancerArns)[0],
}));
const rules = [];
for (const { ListenerArn } of listeners) {
for (const { ListenerArn } of Listeners) {
yield elbv2Client.send(new client_elastic_load_balancing_v2_dist_cjs.DescribeRulesCommand({ ListenerArn: ListenerArn }))
.then(({ Rules }) => {
for (const rule of Rules) {
Expand Down

0 comments on commit f3d2eac

Please sign in to comment.