HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

exo iam — Manage the Exoscale IAM service. More information: <https://community.exoscale.com/product/iam/>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandexoscaleclimanageserviceiamexo iam

Problem

How to use the exo iam command: Manage the Exoscale IAM service. More information: <https://community.exoscale.com/product/iam/>.

Solution

exo iam — Manage the Exoscale IAM service. More information: <https://community.exoscale.com/product/iam/>.

List all of the IAM roles:
exo iam role list


Create a new API key:
exo iam api-key create {{api_key_name}} {{iam_role_name}}


Create a new IAM role:
cat {{path/to/policy.json}} | exo iam role create {{iam_role_name}} --editable --policy -


Show the policy of an existing IAM role:
exo iam role show {{iam_role_name}} --policy {{[-O|--output-format]}} {{json}} | jq .


Update the default Organization policy (the default Organization policy will be applied to all of the API keys within the Organization):
cat {{path/to/policy.json}} | exo iam org-policy update -

Code Snippets

List all of the IAM roles

exo iam role list

Create a new API key

exo iam api-key create {{api_key_name}} {{iam_role_name}}

Create a new IAM role

cat {{path/to/policy.json}} | exo iam role create {{iam_role_name}} --editable --policy -

Show the policy of an existing IAM role

exo iam role show {{iam_role_name}} --policy {{[-O|--output-format]}} {{json}} | jq .

Update the default Organization policy (the default Organization policy will be applied to all of the API keys within the Organization)

cat {{path/to/policy.json}} | exo iam org-policy update -

Context

tldr-pages: common/exo iam

Revisions (0)

No revisions yet.