AWS IAM Users- using AWS Tools for Windows Powershell
- By : Dom
- Category : Amazon Web Services
- Tags: AWS, Powershell
Creating Users –To create a user, use the New-IAMUser cmdlet.
New-IAMUser – UserName ‘TestUser’
Get Users – Get details of a user by using Get-IAMUser cmdlet.
If you do not pass the -UserName parameter, it will retrieve the details of the user currently logged in.
Get-IAMUser
Update Users – If you want to edit a user’s username or path, you use the Update-IAMUser cmdlet.
Update-IAMUser -username ‘TestUser’ -NewUserName ‘TestUser2’
Remove Users – To remove users use the Remove-IAMUser cmdlet.
Calling Get-IAMUser for TestUser2 returns an error message that the user with name TestUser2 cannot be found.
This confirms the TestUser2 user was removed successfully.
Remove-IAMUser -UserName ‘TestUser2’ -Force
No Comments