My question has two parts: - How to get log events? The command line tells me that I need to configure aws... - How to configure aws?
I try to get log events by doing the following:
sudo aws logs get-log-events --log-group-name my-group --log-stream-name my-stream --region us-west-2
But I get the error Unable to locate credentials. You can configure credentials by running "aws configure".
So, that is exactly what I do. I run aws configure
, and I fill in the fields as appropriate:
AWS Access Key ID [****************NEEA]:
AWS Secret Access Key [****************Ta1a]:
Default region name [us-west-2]:
Default output format [json]:
Howevever, I try again to get log events:
sudo aws logs get-log-events --log-group-name my-group --log-stream-name my-stream --region us-west-2
, and the same error results.
How do I solve this problem?