Cloud Accounts, Scopes, and IAM¶
Overview¶
Cloud accounts connect RosettaHub to your AWS, Azure, GCP, or Alibaba Cloud infrastructure. Scopes define resource quotas and spending limits for users. In this tutorial you will manage cloud accounts, configure scopes, and work with IAM users and roles.
Prerequisites¶
- [ ] Completed Getting Started with the CLI
- [ ] Organization admin or manager privileges
- [ ] At least one cloud account connected
Steps¶
Step 1: List Cloud Accounts¶
The cloud account command uses the short name acc:
List accounts you own:
List accounts that can be assigned:
Step 2: Browse a Cloud Account¶
Open a cloud account in the browser:
Browse multiple accounts at once:
Step 3: Cloud Account Operations¶
View cost information:
List machines running under an account:
Set budget for an account:
Stop or terminate all resources:
Warning
terminate-all is destructive and will remove all running resources under the account.
Step 4: AWS CLI Integration¶
Configure and use the AWS CLI through RosettaHub:
rh acc configure-aws-cli <cloudAccountUid>
rh acc execute-aws-cli <cloudAccountUid>
rh acc purge-aws-cli <cloudAccountUid>
Get console access URL:
Step 5: Manage IAM Users and Roles¶
List and create IAM users:
List and create IAM roles:
Assign a cloud account to a user:
Step 6: List Scopes¶
Scopes control what resources users can create and how much they can spend:
Step 7: Create a Scope¶
Clone an existing scope:
Step 8: Set Resource Quotas¶
Control how many of each resource type a user can create:
rh scope update-quotas <scopeUid> \
--formation-quota 5 \
--session-quota 10 \
--image-quota 3 \
--storage-quota 5
Step 9: Set Resource Limits¶
Control maximum spend and resource sizes:
rh scope update-limits <scopeUid> \
--maximum-hourly-cost 10.0 \
--maximum-compute-instances 4 \
--maximum-block-storage-size 500 \
--maximum-autostop-timeout 480
Step 10: Restrict Instance Types¶
Limit which instance types are available:
rh scope update-instance-types <scopeUid> \
--ram-quota aws=64,azure=32 \
--allowed-instance-types "aws:t3.micro,t3.small,m5.large;azure:Standard_B2s"
Next Steps¶
- Compliance and Cloud Custodian — enforce policies across accounts
- Automation with Cron Jobs — schedule account operations
Troubleshooting¶
Cannot see cloud accounts
Cloud account visibility depends on your role. Managers and admins see accounts they manage. Regular users see only assigned accounts.
Scope quotas not taking effect
Ensure the scope is assigned to the target users. Scopes must be linked to take effect.
What is the difference between quotas and limits?
Quotas control the number of resources (e.g., max 5 formations). Limits control the size or cost of resources (e.g., max 500 GB storage, max $10/hour).