Created
January 23, 2020 18:50
-
-
Save markuman/da74c20fc0b68be59d2d908a36cf6562 to your computer and use it in GitHub Desktop.
AWS key rotation
This file contains 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
$ ansible-playbook rotate_aws_keys.yml | |
AWS Profile? [test]: | |
PLAY [localhost] **************************************************************************************************************************************** | |
TASK [Get the current caller identity facts] ************************************************************************************************************ | |
ok: [localhost] | |
TASK [read current credentials] ************************************************************************************************************************* | |
ok: [localhost] | |
TASK [create new iam credentials] *********************************************************************************************************************** | |
changed: [localhost] | |
TASK [delete old credentials] *************************************************************************************************************************** | |
changed: [localhost] | |
TASK [update secret access key credentials file] ******************************************************************************************************** | |
changed: [localhost] | |
TASK [update access key credentials file] *************************************************************************************************************** | |
changed: [localhost] | |
PLAY RECAP ********************************************************************************************************************************************** | |
localhost : ok=6 changed=4 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment