Skip to content

Accounts Removed From AWS Organization Still Appear in UI #396

@svozza

Description

@svozza

Describe the bug
When an account has been removed from an AWS Organization, it still appears in the account list in the Workload Discovery UI. This is because in AWS_ORGANIZATION mode the discovery process finds all the accounts in an organization using ListAccounts and ultimately writes them to the database without doing a diff to see if any have been deleted.

We should move the account discovery logic to the getAccounts GraphQL query and use ListAccounts as the source of truth rather than the DynamoDB table and only use the discovery process to persist WD specific information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriagedHas been triaged by solutions team

    Type

    No type

    Projects

    Status

    ✅ Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions