-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not reading aws environmental variables #102
Comments
Thanks, I'll look into it |
thanks! |
@ekimia this works for me if I do
Debug tip: Try to echo those two variables from inside your bash script. Seems to me like they are not visible to subprocesses of the shell that is launching rome. Also, just a tip for your Romefile and travis config:
|
update on this. Travis is setup properly and the variables do exist in my |
@ekimia but do they exist in |
yup! |
@ekimia ok Thanks. The problem then seems to be much deeps than Rome. I'll try to make a minimal experiment and see. Thanks for your understanding and for finding a workaround in the mean time. |
no problem, let me know if you need help |
Unless you're trying to use the "engine" feature, Rome doesn't launch any child process. It's using system provided access to env variables via http://hackage.haskell.org/package/base-4.12.0.0/docs/System-Environment.html#v:lookupEnv I doubt this is bug in a core Haskell library. Rather something is interfering with your VM's env variables. On Travis for example reading env works just fine. |
Debugging on a BuddyBuild remote session:
Then, Note that I'm currently using |
try |
Also, if you are using Minio instead of S3 you need If you use a custom profile you also need |
We aren't using Minio, that was my error since I found that issue in the issue list first. Interesting discoveries, using version
List dependencies that are in the bucket... whereas:
Complains about the key. Currently the bucket is (even) completely public (for testing purposes!), so this is strange |
Try running this on CI: https://mega.nz/#!ik1xVArD!7mq-Dtzb07yMZccNSc6rwjYB_enRw6t8XVxDNWEqcWY Source Codemodule Main where
import System.Environment
main :: IO ()
main = do
aws_region <- lookupEnv "AWS_REGION"
aws_id <- lookupEnv "AWS_ACCESS_KEY_ID"
aws_secret <- lookupEnv "AWS_SECRET_ACCESS_KEY"
print aws_region
print aws_id
print aws_secret |
Can check that in a moment. However, more relevantly, perhaps; we use a wrapper around
I suspect for this to work I potentially need to pass all of them...? Also, please forgive my relative AWS ignorance, not my speciality 😢 |
^ Got it now, I think! I just need to pass all of those as env vars:
Generally caused by my ignorance. Perhaps a docs improvement would be to list all of those keys as potential candidates, and something along the lines of; "if these are listed in your profile in credentials, you need to pass them all to Rome"? |
I have no idea what AWS_SESSION_TOKEN or AWS_SECURITY_TOKEN are doing. I doubt I'm reading them on the latest version. |
Now confirmed that I have something basically working, although not enough to exactly confirm what the issue is. I'll update again when I know. Other minor issue I'm now seeing is Rome produces no output when running via the build server. I also checked redirecting stderr to stdout to see if BuddyBuild only outputs stdout (seems unlikely). Could there be something sensitive that might prevent Rome producing output? Currently makes it quite hard to work out what's going on |
No, there is no redirection of std input or output or error. You can use |
So it fails, given
~/.aws/credentials
doesn't exist. My build:https://travis-ci.org/zerofinancial/relay/builds/269878346
The text was updated successfully, but these errors were encountered: