Skip to content

Instantly share code, notes, and snippets.

@ebahsini
Created November 16, 2018 05:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebahsini/a1d0001c84adb4fd07922111f8883b77 to your computer and use it in GitHub Desktop.
Save ebahsini/a1d0001c84adb4fd07922111f8883b77 to your computer and use it in GitHub Desktop.
AWS CLI IAM User reset password #iam #aws

aws iam get-login-profile --user-name <username>

aws iam create-login-profile --user-name <username> --cli-input-json file://cli-skeleton-json.txt

Where cli-skeleton-json.txt looks like:

{
    "UserName": "<username>",
    "Password": "CrazyPasswordWithSymbols87198@^*9e1",
    "PasswordResetRequired": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment