feat(log-collector): log ec2 regional endpoint reachability
Issue #, if available:
Description of changes:
Reachability to the EC2 regional endpoint is essential for various core tasks that run on the instance, e.g. for IPAMD to manage ENIs or for nodeadm/bootstrap.sh to find out the instance's private DNS name. This adds a check to confirm that the endpoint can be reached at log collection time, which helps give some insight on whether an earlier error encountered reaching the EC2 endpoint was intermittent/one-off or sustained.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Testing Done I copied the changed script and ran it on one of my nodes to confirm it creates the regional ping file.
See this guide for recommended testing for PRs. Some tests may not apply. Completing tests and providing additional validation steps are not required, but it is recommended and may reduce review time and time to merge.
This pull request is stale because it has been open for 60 days with no activity. Remove the stale label or comment to avoid closure in 14 days