Thanks for sending that over! I believe you’re running into this because AWS_ is a reserved prefix for environment variables. More from @Dennis here:
Depending on which AWS service you’re using, there should be docs for custom named vars or passing a config file.
This post describes how to access those vars on the Netlify side:
Let us know how it goes or if we can help further!