A cloud engineer encountered a strange issue with a Transit Gateway (TGW) VPC attachment in a pendingAcceptance state without an 'Accept' button or approval process.
The engineer discovered that the TGW route table linked to the attachment was deleted but still referenced, leading to a cross-account TGW mystery.
After conducting CLI detective work, it was revealed that the issue stemmed from a deleted route table in a centralized network account, leaving dangling references in the spoke (development) account.
To address the problem and make troubleshooting easier for similar scenarios, a guided shell script named tgw_check.sh was developed to help navigate and resolve issues related to TGW ownership and route table management.