Nerdy Drunk

Drunk on technology

User Tools

Site Tools


aws:roles_anywhere

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
aws:roles_anywhere [2022/07/21 10:41] – external edit 127.0.0.1aws:roles_anywhere [2022/07/21 11:00] ndatingalls
Line 22: Line 22:
  
 === Use Python === === Use Python ===
-Updated script to use Python requests library.  Based on AWS example from [[https://docs.aws.amazon.com/general/latest/gr/sigv4-signed-request-examples.html#sig-v4-examples-post|here]] and incorporating changes mentioned [[https://docs.aws.amazon.com/rolesanywhere/latest/userguide/authentication-sign-process.html|here]].  Updated to use https://cryptography.io/en/latest/ instead of https://www.pycryptodome.org/ This example uses the region US-East-2.+Updated script to use Python requests library.  Based on AWS example from [[https://docs.aws.amazon.com/general/latest/gr/sigv4-signed-request-examples.html#sig-v4-examples-post|here]] and incorporating changes mentioned [[https://docs.aws.amazon.com/rolesanywhere/latest/userguide/authentication-sign-process.html|here]].  Updated to use https://cryptography.io/en/latest/ instead of https://www.pycryptodome.org/ This example uses the region US-East-2.  Also added the ability to use an encrypted private key, but **please implement proper key security** as this script was a very quick "how do I make this work" project. 
 + 
 +Mentioned on [[https://www.lastweekinaws.com/podcast/aws-morning-brief/aws-s-disclosure-improvements/|AWS Morning Brief 2022-07-21]].
 <code python roles_anywhere.py> <code python roles_anywhere.py>
 # Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
aws/roles_anywhere.txt · Last modified: 2022/07/24 13:19 by ndatingalls