Skip to main content
Skip table of contents

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

CODE
terraform -version

4. 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 )

CODE
aws --version

5. Enter the below command to Configure the AWS

CODE
aws configure

6. Enter the access key & secret access key of the user you wish to onboard the account

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

8. Click enter for default output format

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

9. Enter the below command to clone the repository

CODE
git clone https://github.com/cloudwizio/terraform

10. Open the command prompt /terminal & go to the location where you configured the terraform

11. Enter the below command to initialize the terraform

CODE
chmod +x run-terraform.sh

12. Navigate to your tenant eg: http://demo.cloudwiz.io

13. Login to DigitalEx

14. Go to Menu & open API page

15. Copy tenant id & Paste in command prompt /terminal

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

17. 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

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

18. Usage account will get onboarded successfully.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.