[ad_1]
Click on on “Copy to Clipboard” to repeat the API secret key. This API secret key can be required as an enter to the Python script that we’ll be working shortly. It is strongly recommended to retailer this key securely because it may very well be used for varied automation duties in Development Micro Cloud One.
Click on “Shut.”
The subsequent step is to clone the WorkloadSecurityConnector-AWS GitHub repository right here.
Upon getting the GitHub repository cloned, navigate to the folder, and run the next command:
pip set up -r necessities.txt
You will have to configure the software with the config.json file discovered inside the folder.
The sector dsmHost is about to https://cloudone.trendmicro.com to speak with Workload Safety.
The API secret key we copied to the clipboard earlier replaces the worth <Your-API-Key> for the sector c1wsApiKey.
The opposite two fields, awsDisplayName and awsAccountId, are AWS particular values. The awsDisplayName is the show identify for the AWS account you might be about so as to add to Workload Safety and awsAccountId is the account ID. To seek out your AWS account ID, run the next AWS Command Line Interface (CLI) command:
aws sts get-caller-identity –query Account –output textual content
Your account ID is the 12-digit quantity returned from the AWS CLI command.
If the machine you might be utilizing is an Amazon Elastic Compute Cloud (EC2) occasion, you need to use an AWS Id and Entry Administration (IAM) occasion function to proceed with the subsequent step. Set the useInstanceRole flag to true.
Notice: The Python script helps different choices for authentication and authorization like utilizing an AWS IAM entry and secret key or a cross-account IAM function. For the needs of this demo, we advocate utilizing an Amazon EC2 machine with an acceptable occasion function hooked up to it.
In case your AWS account makes use of Amazon WorkSpaces, we advocate turning the workspacesEnabled flag to true for visibility into its cases.
As soon as the config.json file is configured, save the file, after which run the next command:
python3 workloadsecurityconnector_aws.py
Your Workload Safety dashboard ought to quickly begin to populate your Amazon EC2 and Amazon WorkSpaces cases throughout all AWS areas on the “Computer systems” tab of the console.
[ad_2]