September 2026 release is live Read More

Step-2 : Create an IAM role for Mavvrik

This steps only provides illustrations on creating a role but a user with access/secret key is also supported. If you wish to create a user, please assign similar permissions as documented for a role below. We encourage a use of a Role over a User as its more secure.

  1. Login to AWS Member account you’re trying to onboard as an Administrator if not already logged in. And navigate to IAM service using AWS search bar.

  2. On the IAM Console, Select Roles from the left menu, and click Create role.

  3. Select Custom trust policy

  4. Copy the JSON

    {
      "Version": "2012-10-17",
        "Statement": [
          {
            "Effect": "Allow",
            "Action": ["sts:AssumeRole"],
            "Principal": {
              "AWS": [
                "arn:aws:iam::911403356698:user/global-user-for-assume-role",
                "arn:aws:iam::911403356698:user/mavvrik-svc-user",
                "arn:aws:iam::911403356698:role/mavvrik-svc-role"
              ]
            },
            "Condition": {
              "StringEquals": {
                "sts:ExternalId": "<TENANT-ID>"
              }
            }
          }
        ]
    }
    
  5. Paste the copied JSON in Custom trust policy editor

    image-20260814-070813.png
  6. Remove <TENANT-ID>

image-20260814-071541.png
  1. Enter your tenant id as shown image. To get the tenant id to

    1. Login to Mavvrik

    2. From the side menu, select API under the Admin section

    3. Capture the Tenant ID

8. Click Next, on next screen for permissions, please choose 'All Types'in the filter and select the listed policies below.

  • ReadOnlyAccess

  • ViewOnlyAccess

  • IAMReadOnlyAccess

  • CloudWatchReadOnlyAccess

  • ComputeOptimizerReadOnlyAccess

  • AWSOrganizationsReadOnlyAccess

    image-20231006-105633.png
  1. Click Next again & on a final page, give a name to the role & click Create role

  2. Open the newly created role

  3. Click on Add permissions → Create inline policy.

    image-20231214-080100.png


  4. Search for Cost Explorer Service

  5. Click on Write → StartSavingsPlansPurchaseRecommendationGenerationNext

    image-20231214-080431.png


  6. Enter the policy name.

  7. Click onCreate policy.

    image-20231214-080632.png
  8. Once the role is created, please note the ARN of a role, which will be required in the next step.

Screenshot 2023-09-21 at 5.13.37 PM.png


If you still wish to prefer using access/secret access key. Follow below steps

  1. Login to AWS Member account you’re trying to onboard as an Administrator if not already logged in. And navigate to IAM service using AWS search bar.

  2. On a IAM Console, Select Users from the left menu

image-20231009-074516.png
  1. Click on Create User

image-20231009-074555.png
  1. Enter the Username & click Next.

image-20231009-074701.png
  1. Select Attach policies directly, on next screen for permissions, please choose 'All Types' in the filter and select the listed policies below.

  • ReadOnlyAccess

  • ViewOnlyAccess

  • IAMReadOnlyAccess

  • CloudWatchReadOnlyAccess

  • ComputeOptimizerReadOnlyAccess

  • AWSOrganizationsReadOnlyAccess

    image-20231009-074917.png
  1. Click Next again & on a final page, give a name to the role & click Create user

    image-20231009-075357.png
  2. Once the user is created, please click on the user to create a Secret Key

  3. Go to Security Credentials tab & Click on Create Access Key

    image-20231009-075655.png
  4. Select Application running outside AWS & Click on Next

    image-20231009-075825.png
  5. Click on Create access key.

image-20231009-075927.png
  1. Secret Key will get generated.

  2. Copy the Access Key & Secret Key which will be required in the next step.

image-20231009-080117.png
  1. Open newly created user

  2. Click on Add permissions → Create inline policy.

image-20231214-082043.png
  1. Search for Cost Explorer Service

  2. Click on Write → StartSavingsPlansPurchaseRecommendationGenerationNext

    image-20231214-080431.png


  3. Enter the policy name.

  4. Click onCreate policy.

    image-20231214-080632.png