{"action":"closed","issue":{"url":"https://api.github.com/repos/coinbase/assume-role/issues/17","repository_url":"https://api.github.com/repos/coinbase/assume-role","labels_url":"https://api.github.com/repos/coinbase/assume-role/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/coinbase/assume-role/issues/17/comments","events_url":"https://api.github.com/repos/coinbase/assume-role/issues/17/events","html_url":"https://github.com/coinbase/assume-role/issues/17","id":305121344,"number":17,"title":"FR: Output ACCOUNT_ROLE if called via 'eval'","user":{"login":"jtheuer","id":96364,"avatar_url":"https://avatars2.githubusercontent.com/u/96364?v=4","gravatar_id":"","url":"https://api.github.com/users/jtheuer","html_url":"https://github.com/jtheuer","followers_url":"https://api.github.com/users/jtheuer/followers","following_url":"https://api.github.com/users/jtheuer/following{/other_user}","gists_url":"https://api.github.com/users/jtheuer/gists{/gist_id}","starred_url":"https://api.github.com/users/jtheuer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtheuer/subscriptions","organizations_url":"https://api.github.com/users/jtheuer/orgs","repos_url":"https://api.github.com/users/jtheuer/repos","events_url":"https://api.github.com/users/jtheuer/events{/privacy}","received_events_url":"https://api.github.com/users/jtheuer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-14T11:31:53Z","updated_at":"2018-03-14T16:42:43Z","closed_at":"2018-03-14T16:42:43Z","author_association":"NONE","body":"Hi, great work on the tool! I try to write a wrapper for the fish-shell and it would be helpful if you can output the `ACCOUNT_ROLE` here so I can add it to the prompt:\r\n\r\nhttps://github.com/coinbase/assume-role/blob/master/assume-role#L238-L249\r\n\r\n```\r\n  # OUTPUTS ALL THE EXPORTS for eval $(assume-role [args])\r\n  if [ \"$OUTPUT_TO_EVAL\" = \"true\" ]; then\r\n    echo \"export AWS_REGION=\\\"$AWS_REGION\\\";\"\r\n    echo \"export AWS_DEFAULT_REGION=\\\"$AWS_DEFAULT_REGION\\\";\"\r\n    echo \"export AWS_ACCESS_KEY_ID=\\\"$AWS_ACCESS_KEY_ID\\\";\"\r\n    echo \"export AWS_SECRET_ACCESS_KEY=\\\"$AWS_SECRET_ACCESS_KEY\\\";\"\r\n    echo \"export AWS_SESSION_TOKEN=\\\"$AWS_SESSION_TOKEN\\\";\"\r\n    echo \"export AWS_ACCOUNT_ID=\\\"$AWS_ACCOUNT_ID\\\";\"\r\n    echo \"export AWS_ACCOUNT_NAME=\\\"$AWS_ACCOUNT_NAME\\\";\"\r\n    echo \"export AWS_SESSION_ACCESS_KEY_ID=\\\"$AWS_SESSION_ACCESS_KEY_ID\\\";\"\r\n    echo \"export AWS_SESSION_SECRET_ACCESS_KEY=\\\"$AWS_SESSION_SECRET_ACCESS_KEY\\\";\"\r\n    echo \"export AWS_SESSION_SESSION_TOKEN=\\\"$AWS_SESSION_SESSION_TOKEN\\\";\"\r\n    echo \"export AWS_SESSION_START=\\\"$AWS_SESSION_START\\\";\"\r\n    echo \"export GEO_ENV=\\\"$GEO_ENV\\\";\"\r\n  fi\r\n```\r\n\r\n"}}
{"actor":{"display_login":"grahamjenson"}}