'How do I create a CloudFormation template to create multiple IAM user?

A dynamic script which asks the number of users to be created. The script should create the number of users intended.The user names should be unique each time and used as an input parameter.

I was able to create users manually but had trouble in creating users as the the problem states since I don't know the syntax



Solution 1:[1]

You can't make "dynamic" templates without macro or custom resource. So you have to develop the macro or a custom resource.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Marcin