IAM Script For Windows Powershell

Register
Submit a solution
The challenge is finished.

Challenge Overview

Competition Task Overview

We are looking for a command line script(s) (that will run on OSX (bash) and windows (powershell)) that will create IAM users for us.

See this page for more details: http://aws.amazon.com/iam/

We've already implemented the OSX bash script (see attached), now we need the powershell script to work on windows.

Requirements:

  • It will need to ingest a CSV file that include a list with Name, Group, Email elements, you can define the csv file format
  • For each item in the list it will create a new IAM account using the Name attribute
  • For each new IAM account it will create a Random password, secret key and access key
  • It will assign the new account to the IAM group that matches Group (non case sensitive associations i.e group_a and Group_A)
  • It will assign a policy granting the user the ability to change their IAM accounts password, secret key and access key.
  • Once all attributes have been created an email will be sent to the address assigned to email that includes the new IAM account, the password, Secret key and access key along with the IAM login address.
  • The account number that new IAM account will be created in along with a secret and access key with permissions to create them will be provided at the command line
  • Make sure there is a unique log file created everytime this script is run
  • We need to be able to run the script for a single user at the command line as well (i.e. ignore CSV file but instead pass single user info via command line options)
  • We need to minimize depedency on external libraries not bundled with windows

Technology Overview

  • Windows
  • Powershell

Documentation Provided

No documents provided for this challenge.



Final Submission Guidelines

Submission Deliverables

  • The Powershell script that meets all requriements, it must work on Windows
  • Sample CSV file
  • Instructions on how to use the script

Final Submission

For each member, the final submission should be uploaded to the Online Review Tool.

Review style

Final Review

Community Review Board

Approval

User Sign-Off

Challenge links

ID: 30045042