aws-health-aware
aws-health-aware copied to clipboard
Moving get_account_name call to account loop
Issue #72
Description of changes: Moved the call to get_account_name from the event_entities loop to the affected_accounts loop to reduce the number of calls to get the account name when in Org Mode to a single call per account instead of a call per entity/resource.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Updated PR to include if statement to skip the get_account_name call if the event contains more than 100 accounts.
Closing as we resolved in a separate PR https://github.com/aws-samples/aws-health-aware/pull/78