1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
I am not aware of a method on how to obtain this information within the instance, however /etc/os-release will contain the major release version information amongst other things, also hostnamectl will output some information for you.
Having said that if you want to know the exact release version that your instance was based on (before you performed any updates/upgrades via packagemanager etc) you can take a look at the AMI ID as it will contain the releaseversion in its name:
As you can see here the AMI name will contain the releaseversion which correlates with this here: https://docs.aws.amazon.com/AL2/latest/relnotes/relnotes-20221116.html
répondu il y a un an
Contenus pertinents
- demandé il y a 14 jours
- demandé il y a un jour
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 9 mois
- Comment configurer un proxy HTTP pour Docker et l'agent de conteneur Amazon ECS for Amazon Linux 2 ?AWS OFFICIELA mis à jour il y a 4 ans
Unfortunately I don't have access to such information. I need to check OS version inside .NET application on a customer VM.
@Sergey, you could retrieve the ami-id by calling the instance metadata service and then use that to perform a query against the AWS API to extract the needed data.