nOps requires safe, secure, and AWS-approved access to your AWS accounts in order to give you the analysis, dashboards, and reports that you need. We only see what you want us to see in order to provide our services, no more, and we need you to give us permission first.
In order to credential and register multiple accounts, we leverage AWS Organizations, CloudFormation, StackSets, and Lambda.
Admin role permissions in AWS in order to add AWS Payer and/or Child accounts to nOps using Terraform.
Access to the nOps public Github repository nOps Cloud Account Registration.
nOps Onboarding - Terraform Setup
When you log in to your nOps account for the first time, a pop-up screen will appear. This pop-up screen will guide you on how you can add your AWS account(s) to nOps. The screen consists of four distinct sections:
1 - Select Cloud Type
On this page, select the type of cloud account that you want to onboard (AWS or Azure) and click Next.
In the scope of this article, we are going to deal with the AWS Account setup process.
2 - Getting Started
In this section, you need to select the account setup method. In the scope of this article, we will deal with the IaaC Multiple Accounts Setup. Select the IaaC Multiple Accounts Setup option and click Next.
3 - Link Cloud Accounts
The first page in the Link Cloud Accounts section informs you of the prerequisites. If this is your first time onboarding accounts in nOps, click Proceed to Create API Key.
If you are adding multiple accounts after you’ve already been onboarded, go to Create an API key to learn how you can get the API key.
On the second page in the Link Cloud Accounts section, enter:
An API key name
API Key description
Signature verification (optional)
After you add all the information, click Create API Key.
Once you click Create API Key nOps will generate an API key for you. Copy and save the API key for future use, and click Next.
When you click Next, nOps will start checking for its connectivity with your AWS accounts. In order for nOps to establish a connection with your accounts and start fetching data, you need to:
Go to your AWS console to enable CloudFormation Stacksets in AWS Organization, and enable StackSets in AWS CloudFormation.
Go to the nOps Cloud Account Registration Github repo and follow the instructions in Terraform Multiple Child Account Registration via Stackset section.
To enable CloudFormation StackSets in AWS Organizations, go to AWS Organizations > Services. If you see Access disabled against CloudFormation StackSets option, enable it.
To enable StackSets in AWS CloudFormation, go to CloudFormation > StackSets. If there is no prompt to enable StackSets, then skip this step. If you see an option to enable the StackSets, then enable it.
Before you continue with the onboarding process any further, make sure that you have:
IDs of Organization Units you want to onboard.
Organization Root ID.
Payer Account ID.
To view the details about your organization including Organization Unit IDs, Root ID, and Master Payer Account ID, see Details About Your Organization.
nOps Terraform code is available in a public GitHub repository nOps Cloud Account Registration. You need to:
Clone the repository.
Navigate to `nops-cloud-account-registration/nops-aws-account-register/`.
Follow the instructions in
terraform-master-payer-regiaster/folder to add a Payer account. Follow the instruction in
terraform-multiple-child-accs-register-via-stacksets/folder to add child account(s).
After you've gone through the installation steps in the public GitHub repository (nOps Cloud Account Registration), the data ingestion process will start.
You can monitor the progress from the terminal where you ran the Terraform commands or you can also monitor the progress from the AWS CloudFormation console. In your AWS CloudFormation console, find the stack with the name member-consolidated-nops-account-register, open it, and go to the Stack Instances tab to see the progress.
After a few minutes (depending on the number of accounts) all stacks should be in the state CURRENT.
4 - Fetching
Once your AWS accounts are linked successfully, the data-fetching process will start It might take several hours for nOps to fetch the data from your AWS account, in the meantime, you can click Let Me Explore to enter the nOps web application to see all the savings that nOps has to offer.
When the data fetching process is complete, you will see the message Your AWS accounts linked successfully on the setup screen.
The setup process is now complete and you will see the following screen.
If you have any questions, please contact us at email@example.com, or by phone at +1 866-673-9330.
On initial ingestion, nOps will pull the data from AWS accounts based on the following durations:
Cost data: 6 months look back + current month.
Rules: Current date.
CloudTrail Events: 14 days look back.