Make sure you restart your CLI of choice when setting values with environment variables. Don't be like me and set up Paperclip and AWS correctly with ENV variables and then waste a bunch of time on Google only to fix the issue by quitting and reopening Terminal.