In my experience with AWS deployments, I found the need to change the settings within /etc/security/limits.d
if I changed only the values in the limits.conf from /etc/security/ it gets overridden by limits.d contents.
make sure to check if any pre- determined limits were not set by AWS in limits.d
Hope it helps,
... View more