exo iam role create

Description

This command creates a new IAM Role. To read the Policy from STDIN, append ‘-’ to the ‘–policy’ flag.

Pro Tip: you can reuse an existing role policy by providing the output of the show command as input:

exo iam role show --policy --output-format json <role-name> | exo iam role create <new-role-name> --policy -

Supported output template annotations: .ID, .Name, .Description, .Editable, .Labels, .Permissions

exo iam role create NAME [flags]

Options

OptionDescription
--descriptionRole description
--editableSet –editable=false do prevent editing Policy after creation
--help, -hhelp for create
--labelRole labels (format: key=value)
--permissionsRole permissions
--policyRole policy (use '-' to read from STDIN)

Options inherited from parent commands

OptionDescription
--config, -CSpecify an alternate config file [env EXOSCALE_CONFIG]
--output-format, -OOutput format (table|json|text), see "exo output –help" for more information
--output-templateTemplate to use if output format is "text"
--quiet, -QQuiet mode (disable non-essential command output)
--use-account, -AAccount to use in config file [env EXOSCALE_ACCOUNT]

Related Commands

  • role - IAM Role management