Created
March 23, 2017 15:31
-
-
Save jolexa/4a08c85498992b2141ab91fba2f65d2f to your computer and use it in GitHub Desktop.
Python script to open IAM documentation in new tab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import webbrowser | |
service = sys.argv[1] | |
url = "https://docs.aws.amazon.com/IAM/latest/UserGuide/list_{}.html".format(service) | |
webbrowser.open(url, new=2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create a bash function in your shell rc file
Then, whenever you need to know some AWS IAM docs, open the link:
Example, for
ec2:*
info:iam_help ec2
Example, for
autoscaling:*
info:iam_help autoscaling
Credit: @brycetho