You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I installed Powershell on MacOSX and downloaded the AWS S3 Data Connector Scripts, I am using AWS profiles with SSO connected to my entra ID so I have AWS cli configured with multiple profiles for multiple AWS accounts.
I get stuck with the script after filling in the role name and workspace id.
.\ConfigAwsConnector.ps1
Starting ConfigAwsConnector at: 11/28/2024 11:12:40
Log created: /Users/***/Downloads/AWS S3 Data Connector Scripts/ConfigAwsComToAzureCom/Logs/AwsS3-11281112.csv
To begin you will choose the AWS logs to configure.
Please enter the AWS log type to configure (VPC, CloudTrail, GuardDuty, CloudWatch, CustomLog): CloudTrail
Checking AWS CLI configuration...
This script creates an Assume Role with minimal permissions to grant Azure Sentinel access to your logs in a designated S3 bucket & SQS of your choice, enable CloudTrail Logs, S3 bucket, SQS Queue, and S3 notifications.
Notes:
* You can find more information about the script in https://github.com/Azure/Azure-Sentinel/blob/master/DataConnectors/AWS-S3/README.md
* If a resource name(like: S3, Sqs, Kms) already exists, the script will use the available one and not create a new resource
Checking existing OIDC provider
OIDC provider already exists
Approved client IDs: api://1462b192-***
Client ID api://1462b192-***** is already approved
Assume role definition
Please enter role name. If you have already configured an assume role for Azure Sentinel, use the same role name: ****
Using role name: OIDC_*** with OIDC prefix because OpenID Connect authentication is being used.
You must specify the the Azure Sentinel Workspace ID. This is found in the Azure Sentinel portal.
Please enter your Azure Sentinel External ID (Workspace ID): ****
Using Azure Sentinel Workspace ID: ***
Write-Log: /Users/***/Downloads/AWS S3 Data Connector Scripts/ConfigAwsComToAzureCom/Utils/HelperFunctions.ps1:74
Line |
74 | Write-Log -Message $error[0] -LogFileName $LogFileNam …
| ~~~~~~~~~
| Cannot bind argument to parameter 'Message' because it is null.
Retrying...
Please enter role name. If you have already configured an assume role for Azure Sentinel, use the same role name:
Describe the bug
I installed Powershell on MacOSX and downloaded the AWS S3 Data Connector Scripts, I am using AWS profiles with SSO connected to my entra ID so I have AWS cli configured with multiple profiles for multiple AWS accounts.
I get stuck with the script after filling in the role name and workspace id.
stripped my data from the logs, replaced by stars
To Reproduce
export AWS_PROFILE="mycompany-production"
aws sso login
pwsh ./ConfigAwsConnector.ps1
Expected behavior
The script should create the data connector resources in my selected profile
Screenshots
Desktop (please complete the following information):
Additional context
also tried within pwsh interactive shell
The text was updated successfully, but these errors were encountered: