Running the Program

Start the program

Once you download the AWSCLI.py file, execute the following steps:

  1. Move the AWSCLI.py file to another directory.
  2. Change the directory to the directory in which the AWSCLI.py file is saved.
  3. Begin the program by running the command Python<version> AWSCLI.py

In addition, you can also set the python environment variables for the path of python and lib.

Available command line arguments

-h / -help

This parameter provides help for the program.

C:\aws-cli-utilities-master\AWS CLI - Idaptive V1>python  AWSCLI.py  -h
usage:  AWSCLI.py  [-h]  [-tenant  TENANT]  [-region  REGION]  [-debug]
    
Enter  Idaptive  Credentials  and  choose  AWS  Role  to  create  AWS  Profile.  Use  this AWS  Profile  to  run  AWS  commands.
    
optional  arguments:
    -h,  --help                        show  this  help  message  and  exit
    -tenant  TENANT,  -t  TENANT       Enter  tenant  url  or  name  e.g. pod0.idaptive.app or cloud-region  REGION,  
    -r  REGION                         Enter  AWS  region.  Default  is  us-west-2  
    -debug,  -d                        This  will  make  debug  on

-t / -tenant

Note: If a value is not provided, this parameter indicates the tenant based on Start Authentication.

Specify the full tenant URL in the command. For example, if the tenant URL is https://abp5986.id.integration-cyberark.cloud, then this parameter can be used in the following ways:

C:\aws-cli-utilities-master\AWS CLI - Idaptive V1>python AWSCLI.py -t abp5986.id.integration-cyberark.cloud  

OR

C:\aws-cli-utilities-master\AWS CLI - Idaptive V1>python AWSCLI.py -t pod0.idaptive.app

OR

C:\aws-cli-utilities-master\AWS CLI - Idaptive V1>python AWSCLI.py -t pod1009 (for pods with format {podname}.idaptive.app)

-r

Enter the AWS region. The default is us-west-2. Use this parameter by default while running the program.

-d / -debug

This parameter will enable the debug option.