Once the instance is installed please apply security patches as per Amazon Linux Security Center updates and available at:
• Here for Linux versions. Updates can be done by running sudo yam update
command.
• Here for kernel. Updates can be done by running sudo yum update kernel
command.