How do I arrive at the Cloud Workload Assurance license count required for my AWS resources?

book

Article ID: 179315

calendar_today

Updated On:

Products

Cloud Workload Assurance

Issue/Introduction

 

Resolution

Symantec Cloud Workload Assurance (CWA) lets you adopt a prepaid or postpaid licensing model. Each AWS account requires a minimum of one CWA license. For either of the pricing models, the number of resources that an account can monitor is 500.

So, the count of licenses can be calculated as: number of resources monitored

                                                                                            500

For example, if you have an AWS account with 600 resources, you require 2 CWA licenses. Similarly, if you have 2 AWS accounts with 300 resources and 350 resources respectively in each account, you require 2 CWA licenses.

Symantec Cloud Workload Assurance provides a python script to enable you to calculate the AWS resource count and thereby the required CWA license count.

Note: It is important to understand that the python script provided by CWA, does not make any changes to your AWS environment, it merely fetches the required data from the AWS services using Get APIs.

Refer to the CWA documentation for a list of Supported AWS services.

Contents of the package

The AWS_license_count.zip consists of the following files:

  1. AccountDetails.csv
  2. GetAwsAccountsCount.py

Steps to implement the solution

  • You must meet the following prerequisites before you use the python script for calculating the AWS resource count and CWA license count:
    • Install Python 3.7
    • Install Boto 3
      • In the Python installation directory, navigate to the Scripts folder.
      • At the command prompt, run the following command: pip install boto3
  • Execute the python script from the zip folder:

GetAwsAccountsCount.py with input file <AccountDetails.csv>

Note: You can specify multiple subscriptions for one AWS account in the AccountDetails.csv fie.

 

Sample output

Following is a sample output that is generated by the python script:

*********************Overall resource count for all subscriptions mentioned in AccountDetails.csv**********************************************

Count of Activity log alert : 18

Count of Key Vaults : 6

Count of Network Watchers : 24

Count of Security Policies : 25

Count of SQL databases : 6

Count of SQL servers : 3

Count of Storage Accounts : 15

Count of Log Profiles : 1

Count of Subnets : 6

Count of Virtual Networks : 6

Count of Virtual Machines : 5

*******************************************************************************

Total Count of all Resources  : 115

Total License Count for all Subscriptions : 1

*******************************************************************************

Attachments

AWS_license_count.zip get_app