- Newest
- Most votes
- Most comments
Hi Fabien,
Based on the AWS documentation, the "DeregisterManagedAccount" API isn't available. Instead, you may need to use the following API:
{ "source": ["aws.controltower"], "detail-type": ["AWS Service Event via CloudTrail"], "detail": { "eventName": ["UpdateManagedAccount"] } }
You can review more details about this in the AWS documentation on Logging AWS Control Tower Actions with AWS CloudTrail.
Additionally, AWS Control Tower offers Lifecycle Events, which are specifically designed for handling accounts and organizational units created or managed through Control Tower.
Another interesting point is that if you want to create a new AWS account using the AWS CLI via Control Tower, there isn't a direct API for this. Instead, you need to use the Service Catalog CLI commands. Here's an article that provides more information on how to do this: A programmatic way to create an account in AWS Control Tower.
Relevant content
asked 3 years ago
- AWS OFFICIALUpdated 2 years ago
