summaryrefslogtreecommitdiff
path: root/src/autoscaling.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/autoscaling.rs')
-rw-r--r--src/autoscaling.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/autoscaling.rs b/src/autoscaling.rs
index ac60613..024b556 100644
--- a/src/autoscaling.rs
+++ b/src/autoscaling.rs
@@ -6,7 +6,7 @@ use aws_sdk_autoscaling::types::{AutoScalingGroup, Instance, LifecycleState};
use aws_sdk_route53::types::ResourceRecordSet;
use trust_dns_proto::rr::Name;
-use crate::ec2::{instance_recordsets, Ec2};
+use crate::ec2::{instance_proposal, Ec2};
use crate::hashable::Hashable;
pub trait AutoScaling {
@@ -28,7 +28,7 @@ where
.ok_or(anyhow!("Autoscaling group returned from AWS with no name"))?;
let live_instance_ids = live_instance_ids(asg.instances());
let proposed =
- instance_recordsets(aws_context, asg_name, dns_name, dns_ttl, &live_instance_ids).await?;
+ instance_proposal(aws_context, asg_name, dns_name, dns_ttl, &live_instance_ids).await?;
Ok(proposed)
}