trek10inc / awsume-console-plugin Goto Github PK
View Code? Open in Web Editor NEWThis is a plugin that enables you to use your assumed role credentials to open the AWS console in your default browser.
License: MIT License
This is a plugin that enables you to use your assumed role credentials to open the AWS console in your default browser.
License: MIT License
I recently reinstalled awsume
and awsume-console-plugin
via pip3
and I'm now getting the below error.
Awsume (along with aws-cli
) still work fine, and I have both Amazon and Amazon Root CA 1 certificates in my keychain, so I'm wondering whether this error is specifically related to the plugin?
I'm running Python 3.7.6 on MacOS Catalina 10.15.7.
Command line output:
stuart@ip-192-168-1-137 ~ % awsume dev -c
Session token will expire at 2021-01-08 22:06:21
[dev] Role credentials will expire 2021-01-08 12:12:54
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1319, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1252, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1298, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1247, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1026, in _send_output
self.send(msg)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 966, in send
self.connect()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1422, in connect
server_hostname=server_hostname)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 423, in wrap_socket
session=session
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 870, in _create
self.do_handshake()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 1139, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/bin/awsumepy", line 8, in <module>
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/awsume/awsumepy/main.py", line 29, in main
run_awsume(sys.argv[1:])
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/awsume/awsumepy/main.py", line 17, in run_awsume
awsume.run(argument_list)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/awsume/awsumepy/app.py", line 263, in run
credentials = self.get_credentials(args, profiles)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/awsume/awsumepy/app.py", line 227, in get_credentials
credentials=credentials,
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pluggy/hooks.py", line 286, in __call__
return self._hookexec(self, self.get_hookimpls(), kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pluggy/manager.py", line 93, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pluggy/manager.py", line 87, in <lambda>
firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall
return outcome.get_result()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result
raise ex[1].with_traceback(ex[2])
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall
res = hook_impl.function(*args)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/console.py", line 141, in post_get_credentials
url = get_console_url(credentials, service)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/console.py", line 219, in get_console_url
response = URLOPEN(request_url + URLENCODE(params))
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 543, in _open
'_open', req)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1362, in https_open
context=self._context, check_hostname=self._check_hostname)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1321, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)>
Hi,
With how simple and useful this plugin is, would it be possible to have it merged with the awsume core? It would be a great addition to the core and make the feature a lot more accessible.
Cheers,
Andrew
When I invoke a different AWS profile, it opens automatically a browser window with that profile, but if I switch profile, the following message shows:
You must first log out before logging into a different AWS account.
To logout, click here
Where the logout link is https://signin.aws.amazon.com/oauth?Action=logout&redirect_uri=aws.amazon.com.
Is it possible to build a URL opening that first logout from the current profile?
It's a bad workflow to have to manually logout and then run awsume <profile> -c
Hi. Great plugin, use it a lot.
Would be great to be able to provide container name in firefox's Multi-Account Containers plugin
So the command in
~/.awsume/config.yaml might look like:
console:
browser_command: /Applications/Firefox.app/Contents/MacOS/firefox -container-name "AWS-{profile}" -no-remote "{url}"
I've installed the plugin via pip3 install awsume-console-plugin
but when issueing awsume -c
I get awsume: error: unrecognized arguments: -c
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.