Create AWS Integration account from CLI

Create AWS Integration account from CLI

Usage:   python3 <uptycs_apikey_file> <account_name> <service_list_file.json> [--domainsuffix <domain>]

Example: python3 john_apikey.json perf_test cloud_services_7_6hr.json

This script is a command line alternative to creating cloud account integrations from the GUI.

This script does the following: 

1. Run the cloud formation template in AWS

2. Read the created 'role_arn' value 

3. Call Uptycs API /cloudAccounts POST

The --domainsuffix flag is only needed for domains others than ''

The AWS Python SDK boto3 is used along with AWS cli for connection and authentication to AWS

Details of using multiple profiles for different AWS accounts can be found here:

    • Related Articles

    • Create Custom Event Exclusion Profile via API

      It may be a lengthy process to create an event exclusion profile with many entries using the GUI. This article shows how to create two custom event exclusion profiles via the API. The urestapi tool is used (  ...
    • Create Custom Threat Source using API

      The article includes the API query to create and update the threat source. We support uploading CSV as of now. To create Threat source: curl --location --request POST ...
    • Provisioning roles using API

      Overview Starting with Uptycs portal release 46025, Uptycs provides entity level granular user permissions through roles. This document outlines the process to create roles using API - with examples. Procedure -- Create a new role $ urestapi -k ...
    • Creating and testing multiple similar alerts using API

      This article shows how to create or update multiple Alert Rules using SQL script with up to 4 parameters. Save SQL script in a separate file.  The script can have up to 4 variables Edit the config file and update all variables as needed. The script ...
    • API: Scheduled Queries

      Following is an example for creating Scheduled Queries scheduledquery.json { "name": "Test query scheduled 10", "type": "scheduled", "description": "demo query", "query": "SELECT pid FROM processes where upt_server_time between :from and :to LIMIT ...