Skip to main content

Connect an AWS Account (CloudCADI hosted on Azure)

Auto and Manual Onboarding

Both Auto and Manual setup use the same cross-account IAM role. The CloudFormation template downloaded during setup provisions an OIDC identity provider trusting CloudCADI's Azure AD issuer, plus an IAM role (with a scoped read-only policy) that CloudCADI assumes via that provider. Deploy the template in your AWS account, then copy the Role ARN from the stack's outputs.

The difference between the two: Manual requires every account to be added one at a time. Auto only needs this once - after the first account is onboarded, every member account in the same AWS Organization is fetched automatically and can be onboarded in a couple of clicks, without repeating the CloudFormation step.

Auto

First account (one-time setup):

  1. Enter the AWS account ID, Account name, Region, and Cost export path, then download the CloudFormation template.

    Enter account details, region, and download the template

  2. Deploy the downloaded template in your AWS account:

    1. CloudFormationStacksCreate stackWith new resources (standard).

      Create a new stack

    2. Choose an existing templateUpload a template fileChoose file → select the downloaded template → Next.

      Upload the CloudFormation template

    3. Under specify stack details. Enter stack name.

    4. For DeployedAccountType, select SELF if the CloudCADI deployed account is the AWS Organizations management account. Select DELEGATED_ADMIN if it is a member account configured as a delegated administrator.

      Enable Delegated Administrator

      Follow these steps to enable a delegated administrator in AWS Organizations:

      1. Sign in to the AWS Management Account and open AWS Organizations → Services.

      2. Find AWS CloudFormation StackSets and click Enable trusted access.

      3. Click Navigate to Console.

        image.png

      4. Under Delegated Administrators, click Register delegated administrator.

        image.png

      5. A popup will appear. Enter the Delegated Administrator Account ID and click Register Delegated Administrator.

      6. The member account can now perform the required actions.

        image.png

      Enter stack name and parameters

    5. Click Next.

    6. Check I acknowledge that AWS CloudFormation might create IAM resources with custom namesNext.

      Acknowledge IAM capabilities

    7. Scroll to the bottom and click Submit.

      Review and submit the stack

  3. Once the stack shows CREATE_COMPLETE, copy the CloudCADIAZUREFederationRoleArn from its Outputs tab, paste it into CloudCADI, and click Confirm.

    Copy the Role ARN from the stack outputs

  4. Review the configuration and click Done - this account is now onboarded.

    Review configuration and finish

Every account after that:

  1. All other accounts in the same AWS Organization are fetched automatically. Select the accounts to onboard and click Done.

    Select accounts to onboard

Manual

  1. Enter the AWS account ID, Account name, and Cost export path, then download the CloudFormation template.

    Enter account details and download the CloudFormation template

  2. Deploy the downloaded template in AWS account that need to be onboarded:

    1. In the AWS Console, go to CloudFormationStacksCreate stackWith new resources (standard).

      Create a new stack

    2. Under Prepare template, leave Choose an existing template selected. Under Specify template, choose Upload a template fileChoose file → select the template downloaded in step 1 → Next.

      Upload the CloudFormation template

    3. On Specify stack details, enter a Stack name (e.g. azure-deployment-aws-onboard-stack) → Next.

      Enter stack name

    4. On Configure stack options, scroll down to Capabilities and check I acknowledge that AWS CloudFormation might create IAM resources with custom namesNext.

      Acknowledge IAM capabilities

    5. On Review and create, scroll to the bottom and click Submit.

      Review and submit the stack

  3. Once the stack status shows CREATE_COMPLETE, open its Outputs tab and copy the AZUREFederationRoleArn value.

    Copy the Role ARN from the stack outputs

    Back in CloudCADI, paste it in and click Confirm.

    Enter the Role ARN and confirm

  4. Review the configuration on the confirmation page and click Done.

    Review configuration and finish

Architecture