Running the Program

Start the program

Once you download the AWSCLI.py file, in the Windows command prompt, from the AWS CLI - Idaptive V1 directory, begin the program by running the following command:

python AWSCLI.py

Available command line arguments

-h / -help

This parameter displays the help options 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

This is a mandatory parameter. Specify the full tenant URL in the command. For example, if the tenant URL is https://abp5986.id.integration-cyberark.cloud, then you can use this parameter 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 enables the debug option.

Once you authenticate to the tenant, you can view the available AWS profiles. To access the profiles, follow the instructions in the AWS documentation.