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
In the code above, account_id = sns_event['ResourceProperties']['CID'] causes the get_deployment function to check the deployment status of the Alert Logic customer ID, rather than the status of the target AWS account ID, which is found in sns_event['ResourceProperties']['AccountId']. This means that the check will always return None, indicating that there is no deployment in the account, which could result in double-deployment if the register Lambda function is ever run more than once on the same target account.
mdr_control_tower_automation/src/register/ct_al_register.py
Lines 244 to 250 in d043f38
In the code above,
account_id = sns_event['ResourceProperties']['CID']
causes theget_deployment
function to check the deployment status of the Alert Logic customer ID, rather than the status of the target AWS account ID, which is found insns_event['ResourceProperties']['AccountId']
. This means that the check will always returnNone
, indicating that there is no deployment in the account, which could result in double-deployment if the register Lambda function is ever run more than once on the same target account.The text was updated successfully, but these errors were encountered: