Forum Discussion
Larssen92
Oct 12, 2021Brass Contributor
Enabling AWS data connector as code
Hi,
Has anyone succeeded enabling the AWS data connector as code? In this example (https://github.com/Azure/Azure-Sentinel/blob/master/Tools/Sentinel-All-In-One/ARMTemplates/LinkedTemplates/dataConnectors.json) other data connectors are enabled through code, but I am unsure how to "add the role" for the AWS data connector.
Assume that the role is already created in the IAM of AWS, and I have the Role ARN
- Larssen92Brass Contributor
I found a solution from this documentation https://docs.microsoft.com/en-us/rest/api/securityinsights/data-connectors/list#awscloudtraildataconnector
I provided a snippet of the working bicep structure, in case anyone is interested. (awsRoleArn is provided as a parameter in this case)