Example #1
0
func privateIP() (string, error) {
	return ec2dynamicdata.GetMetadata(ec2dynamicdata.LocalIPv4)
}
Example #2
0
func instanceID() (string, error) {
	return ec2dynamicdata.GetMetadata(ec2dynamicdata.InstanceId)
}
Example #3
0
func publicIP() (string, error) {
	return ec2dynamicdata.GetMetadata(ec2dynamicdata.PublicIPv4)
}