AWS is responsible.
AWS handles the security of the EC2 physical hardware, hypervisor, and network infrastructure (security OF the cloud).
The content and vulnerabilities of application code written by the customer are outside AWS's scope of management, so making it AWS's responsibility is wrong and incorrect.