Issue
My web app makes calls to href="https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/ec2/Ec2Client.html#startInstances(software.amazon.awssdk.services.ec2.model.StartInstancesRequest)" rel="nofollow noreferrer">start and stop AWS EC2 instances using the AWS SDK for Java via an Ec2Client. Do these calls get logged anywhere within AWS?
I looked at the System Manager logs and I don't see any record of these commands logged there. I also can't find an AWS CLI command that would display them. The only way I know of so far to verify the commands were sent successfully is to check whether the instances started or stopped as expected.
Solution
The logs of AWS API calls like that would be in AWS CloudTrail.
Answered By - Mark B Answer Checked By - Pedro (WPSolving Volunteer)