How to delete an aws sub account created from aws organization account?

Viewed 119

I have added terraform script to create an organization account.

After creation, when I ran destroy, it is not deleting the account.

Getting this error:

An error occurred (ConstraintViolationException) when calling the RemoveAccountFromOrganization operation: The member account must be configured with a valid payment method, such as a credit card.

Using the similar question and answer provided in it, I tried adding close_on_deletion flag to the resource, this time terraform destroy is successful but account is just in suspended state and reapply won't work anyway because of this.

suspended

Removing manually again shows ConstraintViolationException.

0 Answers
Related