Skip to content

Instantly share code, notes, and snippets.

@markuman
Created January 23, 2020 18:50
Show Gist options
  • Save markuman/da74c20fc0b68be59d2d908a36cf6562 to your computer and use it in GitHub Desktop.
Save markuman/da74c20fc0b68be59d2d908a36cf6562 to your computer and use it in GitHub Desktop.
AWS key rotation
$ 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