"""Create IAM Instance Profiles, Roles, Users, and Groups."""
import argparse
import logging

from ..args import add_app, add_debug, add_env
from ..consts import LOGGING_FORMAT
from .create_iam import create_iam_resources

LOG = logging.getLogger(__name__)


def main():
    """Command to create IAM Instance Profiles, Roles, Users, and Groups."""
    logging.basicConfig(format=LOGGING_FORMAT)

    parser = argparse.ArgumentParser(description=main.__doc__)
    add_debug(parser)
    add_app(parser)
    add_env(parser)
    args = parser.parse_args()

    logging.getLogger(__package__.split('.')[0]).setLevel(args.debug)

    assert create_iam_resources(**args.__dict__)


if __name__ == '__main__':
    main()

@@ -333,24 +333,278 @@
  and Groups.
+%0A%0A    IAM Roles will retain any attached Managed Policies. Inline Policies that do%0A    not match the name *iam-project_repo_policy* will also be left untouched.%0A%0A    **WARNING**: Inline Policies named *iam-project_repo_policy* will be%0A    rewritten.%0A    
 %22%22%22%0A    logg

Improve help for `create-iam`