- This is for the AWS switch role
- Generate bookmarks HTML based on ~/.aws/config
- Specify the color in ~/.aws/config
- Python 3.6+
# color = {red(default), orange, yellow, green, blue}
[profile A]
role_arn = arn:aws:iam::123456789012:role/switch-to-assume-role
source_profile = bastion
color = red
[profile B]
role_arn = arn:aws:iam::987654321098:role/switch-to-assume-role
source_profile = bastion
color = blue
- (1) Output HTML
python generate-aws-switch-role-bookmark.py > bookmark.html
- (2) Import the HTML into your browser