jckuester / awsls

A list command for AWS resources
MIT License
838 stars 54 forks source link

approach to failed lookups #34

Open gliptak opened 3 years ago

gliptak commented 3 years ago

I'm seeing a number of failed lookups written to stderr. Maybe they are to be creating corresponding report section stating the failure (aka. tried to lookup certain resource and received this error)? I would even see stating failure in certain regions (only) adding value.

Error aws_gamelift_build: operation error GameLift: ListBuilds, https response error StatusCode: 400, RequestID: df4c1fb5-3a69-qqqq-8d6e-c05295d609da, api error AccessDeniedException: User: arn:aws:sts::123456:assumed-role/AWSReservedSSO_AWSAdministratorAccess_ac4/username is not authorized to perform: gamelift:ListBuilds with an explicit deny
Error aws_elastictranscoder_preset: operation error Elastic Transcoder: ListPresets, https response error StatusCode: 403, RequestID: 60752323-1234-41ce-9187-3f9cdfa7e83a, AccessDeniedException:
Error aws_globalaccelerator_accelerator: operation error Global Accelerator: ListAccelerators, exceeded maximum number of attempts, 3, https response error StatusCode: 0, RequestID: , request send failed, Post "https://globalaccelerator.us-east-2.amazonaws.com/": dial tcp: lookup globalaccelerator.us-east-2.amazonaws.com: no such host