1 Answer
- Newest
- Most votes
- Most comments
1
Hi,
You can get the hostname command using yum
yum install hostname
Another alternative would be to build your own customized image from amazoncorretto:17 with hostname preinstalled so as to avoid the need for any install during runtime.
--Syd
Relevant content
- asked 3 years ago
- AWS OFFICIALUpdated 2 years ago

Yes, this seems to be the easiest fix.