There are two accounts. One is for transit gateway and another is for vpc. There is a transit gateway in account A, and in account B there is a vpc and transit gateway attachment that is associated to the transit gateway in account A through Resource Access Manager. Even if the transit gateway attachment in account B has a tag, the transit gateway attachment that is shown in account A doesn't have a tag. How can I apply a tag to the transit gateway attachment in account A by CDK in Typescript? In account A, only id of the transit gateway attachment is known thus the following occurs an error.
cdk.Tags.of(attachment_id).add('Name', 'tgw-test');
-> TypeError: Cannot read property 'Symbol(cdk-aspects)' of undefined