MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / egressIp

Function egressIp

e2e/src/vm/ec2.ts:77–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75
76/** This host's public egress IP, for the inbound-SSH security-group rule. */
77const egressIp = async (): Promise<string> => {
78 const { stdout } = await execFileP("curl", [
79 "-s",
80 "--max-time",
81 "10",
82 "https://checkip.amazonaws.com",
83 ]);
84 return stdout.trim();
85};
86
87/** Latest AWS-published base AMI for the guest OS (resolve dynamically — ids rotate). */
88const latestAmi = async (os: VmOs): Promise<string> => {

Callers 1

ec2VmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected