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
feita há 7 anos929 visualizações
1 Resposta
1
Resposta aceita

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
ESPECIALISTA
Dave_W
respondido há 7 anos
profile picture
ESPECIALISTA
avaliado há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas