August 2026 release is live Read More

Onboarding using terraform

  1. Download & extract the terraform (https://www.terraform.io/downloads )

  2. Go to command prompt /terminal

  3. Enter the below command to check that terraform is installed

terraform -version
  1. Enter the below command to check that AWS CLI is installed if not install(https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html )

aws --version
  1. Enter the below command to Configure the AWS

aws configure
  1. Enter the access key & secret access key of the user you wish to onboard the account

  1. Enter the region (e.g:- us-east-1)

  1. Click enter for default output format

  1. If you want you can add AWS profiles to ~/.aws/credentials file and onboard multiple accounts

  1. Enter the below command to clone the repository

git clone https://github.com/cloudwizio/terraform
  1. Open the command prompt /terminal & go to the location where you configured the terraform

  1. Enter the below command to initialize the terraform

chmod +x run-terraform.sh
  1. Login to Mavvrik

  1. Go to Menu & open API page

Open the Mavvrik API page to retrieve tenant credentials
Open the Mavvrik API page to retrieve tenant credentials
  1. Copy tenant id & Paste in command prompt /terminal

  1. Copy the JWT & paste the token into the command prompt /terminal

Copy the API bearer token for Terraform onboarding
Copy the API bearer token for Terraform onboarding
  1. Enter the below command to onboard usage account, paste the TENANT_ID and BEARER_TOKEN copied from the above steps, and add aws profile you want to onboard

./run-terraform.sh <MCX_TENANT_ID> <MCX_BEARER_TOKEN> <AWS_PROFILE> [profile2] [profile3] ...


  1. Usage account will get onboarded successfully.