1 Answer
- Newest
- Most votes
- Most comments
0
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
answered 2 years ago
Relevant content
- asked a year ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 15 days ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 years ago
Yes, this seems to be the easiest fix.