# Functions
GetClusterName returns the name of the cluster containing the current EC2 instance.
GetHostname fetches the hostname for current host from the EC2 metadata API.
GetInstanceID fetches the instance id for current host from the EC2 metadata API.
GetLocalIPv4 gets the local IPv4 for the currently running host using the EC2 metadata API.
GetNetworkID retrieves the network ID using the EC2 metadata endpoint.
GetNTPHosts returns the NTP hosts for EC2 if it is detected as the cloud provider, otherwise an empty array.
GetPublicIPv4 gets the public IPv4 for the currently running host using the EC2 metadata API.
GetSubnetForHardwareAddr returns info about the subnet associated with a hardware address (mac address) on the current host.
GetTags grabs the host tags from the EC2 api.
HostnameProvider gets the hostname.
IsDefaultHostname returns whether the given hostname is a default one for EC2.
IsDefaultHostnameForIntake returns whether the given hostname is a default one for EC2 for the intake.
IsRunningOn returns true if the agent is running on AWS.
IsWindowsDefaultHostname returns whether the given hostname is a Windows default one for EC2 (starts with 'ec2amaz-').
# Variables
CloudProviderName contains the inventory name of for EC2.