Role creation based on IAC code