Validating AMI using hash algorithm?

1

A customer would like to know if they can validate the consistency of an AMI using a hash algorithm (or any other way, really). Their question goes to both AWS-created AMIs and to their own. I believe we use MD5 to validate when copying AMIs across regions, but I've not yet found a method that the customer might use.

AWS
Chris_S
gefragt vor 7 Jahren929 Aufrufe
1 Antwort
1
Akzeptierte Antwort

As AMIs are stored in a special area of S3, AMIs are by their nature immutable; they are atomic objects which can't be edited bitwise (any editing requires the replacement of the whole object, at which point the AMI ID changes), and S3's own integrity-checking mechanisms continually validate AMI integrity across the multiple copies S3 actually stores.

So, provided the AMI ID hasn't changed, the AMI hasn't, either. This is another area where "we validate and maintain the integrity of customer data, so the customer doesn't have to" :-).

If the customer wants to do their own validation (let's say there's a particular compliance check they need to meet - and if this is the case, we should have a chat with them about their control requirements and the risks they mitigate, in this area) they could restore the AMI to an EC2 instance, and checksum the EBS volumes involved - though this seems like a lot of effort for little risk mitigation.

AWS
EXPERTE
Dave_W
beantwortet vor 7 Jahren
profile picture
EXPERTE
überprüft vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen