Let RosettaHub Create Accounts¶
Automate only. This is the command the console gives you when you pick Automate.
You run one template on your management account and leave the functional account IDs empty. RosettaHub creates the FinOps, audit and log-archive accounts, then a sandboxed account for each user or project when they need one.
What this grants
Creating accounts needs the Lifecycle grant, which only the Admin template family has. It also means RosettaHub holds the root address of every account it creates. Read Account Access and Scopes before deciding.
On Observe or Govern, RosettaHub cannot create accounts: use Add Your Existing Accounts instead.
The command¶
You need your User Uid and Setup Api Key from the setup keys panel. See Onboard Your Organization if you do not have them yet.
aws cloudformation create-stack \
--stack-name RosettaOpsManagement \
--template-url https://com-rosettahub-public-code.s3.eu-west-1.amazonaws.com/cloudformation/2.0.0/RosettaOpsAdminManagement.yaml \
--parameters ParameterKey=UserUid,ParameterValue=<User Uid> \
ParameterKey=ApiKey,ParameterValue=<Setup Api Key> \
ParameterKey=EnableLifecycle,ParameterValue=true \
ParameterKey=EnableDestroy,ParameterValue=true \
ParameterKey=EnableFederation,ParameterValue=true \
ParameterKey=FinopsAccountId,ParameterValue="" \
ParameterKey=AuditAccountId,ParameterValue="" \
ParameterKey=LogArchiveAccountId,ParameterValue="" \
--capabilities CAPABILITY_NAMED_IAM \
--region eu-west-1
That is the deployment. --region can be any of the ten listed in Onboard Your Organization.
What each value does¶
| Parameter | Value | Effect |
|---|---|---|
FinopsAccountId, AuditAccountId, LogArchiveAccountId |
(empty) | RosettaHub creates that account. Use self to keep the role on the management account, or an account number to use one you have. You can mix |
EnableLifecycle |
true |
Allows account creation. Without it, empty IDs are refused |
EnableDestroy |
true |
Allows clean-up, auto-stop and account recycling. This is the grant that attaches AdministratorAccess |
EnableFederation |
true |
Single sign-on into the AWS console, at no extra charge. Can be switched per account later |
EnableRosettaCloud |
false (default) |
Set true only if you also have RosettaCloud: it turns on self-service provisioning in the account |
The optional parameters (CreateOrganizationIfMissing, BillingBucketName, CloudTrailKms) are the same as for every management stack: see Onboard Your Organization.
Member accounts¶
There is no StackSet to deploy. RosettaHub provisions member accounts itself as users and projects need them: vended from a pool, sandboxed, and cleaned up when returned.
Also bringing accounts you already have?
Deploy the member StackSet over those, as in Add Your Existing Accounts, using RosettaOpsAdmin.yaml. Accounts RosettaHub creates need no StackSet: they are set up at creation.
Optional: close the bootstrap path¶
Every account RosettaHub creates has AWS's own OrganizationAccountAccessRole, which RosettaHub uses to set the account up. Once setup on an account is verified, you can restrict that role to your own administrators. Run this in the created account:
aws cloudformation create-stack \
--stack-name RosettaOpsOrgAccessRoleTrust \
--template-url https://com-rosettahub-public-code.s3.eu-west-1.amazonaws.com/cloudformation/2.0.0/RosettaOpsOrgAccessRoleTrust.yaml \
--parameters ParameterKey=ManagementAccountId,ParameterValue=<management account number> \
ParameterKey=AllowedPrincipalNames,ParameterValue="role/OrgAdmin" \
--capabilities CAPABILITY_NAMED_IAM \
--region eu-west-1
AllowedPrincipalNames lists the IAM roles or users in your management account that may still assume the role, for example role/OrgAdmin and user/breakglass. On the command line, separate several with an escaped comma: ParameterValue="role/OrgAdmin\,user/breakglass". At least one is required: with none, only the account's root user could recover it.
OrgAccessRoleName is optional and defaults to OrganizationAccountAccessRole, the name AWS gives that role in accounts it creates. Set it only if the role in this account has a different name, which can happen in an account invited into the organization.
RosettaHub cannot reopen this path. Applied before setup is verified, it leaves the account unreachable by RosettaHub until recovered. See Account Access and Scopes for the recovery route.
Next¶
- Cloud Accounts: the accounts RosettaHub created.
- Organizations: build your hierarchy and assign managers.
- User Onboarding: bring people in, each with their own account.
- Account Access and Scopes: what RosettaHub may do on each account.