grant_permissions.sh script calculates the RAG_CORPUS path presumably to give tightly scoped permissions to the iam role the script is creating, but then never actually uses RAG_CORPUS env var for anything (but some stdout notifications). I assume this is a bug? I haven't run the script yet, but I think if you scrutinize you'll see what I mean. I just did a text search for "RAG_CORPUS" and it's pretty obvious it never gets used or converted to anything else. Fwiw.