Skip to content

Add Your Existing Accounts

One more command. Use this page to bring member accounts you already own under RosettaOps, on any edition.

Before starting, run the one command from Onboard Your Organization on your management account, and keep your Setup Api Key to hand.

flowchart LR
    A["Management stack<br/><i>done in onboarding</i>"] --> B["Member StackSet<br/><i>this page</i>"]

    style A fill:#fff9c4,stroke:#f9a825,color:#000
    style B fill:#e8f5e9,stroke:#2e7d32,color:#000

Prerequisite: AWS Organizations with all features

The StackSet uses service-managed permissions, which needs AWS Organizations with all features enabled. Consolidated billing alone is not enough. You create no roles for it: CloudFormation sets up what it needs through Organizations trusted access.

The command

Run it on the management account. Replace the four values first:

PAYER=111111111111          # your management account number
MEMBER_OU=ou-xxxx-xxxxxxxx  # the OU holding the accounts to govern
API_KEY=<Setup Api Key>
REGION=eu-west-1            # the Region you used for the management stack

aws cloudformation create-stack-set \
    --stack-set-name RosettaOpsMembers \
    --template-url https://com-rosettahub-public-code.s3.eu-west-1.amazonaws.com/cloudformation/2.0.0/RosettaOpsGovernance.yaml \
    --parameters ParameterKey=ManagementAccountId,ParameterValue=$PAYER \
                 ParameterKey=ApiKey,ParameterValue=$API_KEY \
                 ParameterKey=EnablePermissions,ParameterValue=true \
    --permission-model SERVICE_MANAGED \
    --auto-deployment Enabled=true,RetainStacksOnAccountRemoval=false \
    --capabilities CAPABILITY_NAMED_IAM \
    --region $REGION

aws cloudformation create-stack-instances \
    --stack-set-name RosettaOpsMembers \
    --deployment-targets OrganizationalUnitIds=$MEMBER_OU \
    --regions $REGION \
    --region $REGION

Each account in the OU registers itself against your organization. Because auto-deployment is on, accounts you add to that OU later join with no further action.

For your edition

The command above is Govern. Change it to match the management stack:

Edition Template Flags
Observe RosettaOpsGovernance.yaml EnablePermissions=false
Govern RosettaOpsGovernance.yaml EnablePermissions=true
Automate RosettaOpsAdmin.yaml Replace EnablePermissions with EnableDestroy=true and EnableFederation=true; add EnableRosettaCloud=true if you have RosettaCloud

Optional parameters

Parameter Default What it does
RegType OPS The type recorded for these accounts. OPS means not yet assigned to a user; see User Types
LoginPrefix, LoginSuffix (empty) Shape the platform login generated for each imported account
Regions

--regions can be any of ten Regions. One is enough: it is where the setup runs, not where you can work. US East (N. Virginia), US East (Ohio), US West (N. California), US West (Oregon), Europe (Ireland), Europe (Frankfurt), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo), South America (São Paulo).

Next