Skip to content

Commit

Permalink
Merge branch 'main' into bug_fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
conorbros authored Feb 4, 2024
2 parents 01308d3 + 4f21390 commit 6b086b7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions aws-throwaway/src/ec2_instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ impl Ec2Instance {
self.private_ip
}

/// Use this address to get the private or public IP that aws-throwaway is using to ssh to the instance.
/// Whether or not this is public is decided by AwsBuilder::use_public_addresses.
///
/// You should use this address if you want to connect to the instance from your local machine
pub fn connect_ip(&self) -> IpAddr {
self.connect_ip
}

/// List of all network interfaces attached to this instance.
/// Includes the primary interface that has the ip returned by [`Ec2Instance::private_ip`] as well as all other interfaces attached to this instance at the time it was created.
pub fn network_interfaces(&self) -> &[NetworkInterface] {
Expand Down

0 comments on commit 6b086b7

Please sign in to comment.