Skip to content

Consolidate AWS wrong credentials with other beats #388

@olegsu

Description

@olegsu

Motivation
When Cloudbeat is running on the EKS cluster and the AWS credentials are wrong it will log a message and stay in idle mode.
The log

Could not run Beater: %!w(*fmt.wrapError=&{Could not create beater: could not retrieve user identity for ECR fetcher: operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: 5b5c2c71-2d32-4a84-a573-30f5c0051d1e, api error InvalidClientTokenId: The security token included in the request is invalid. 0xc000bba9c0})

When looking at other beats we see that Cloudbeat is not behaving the same way. For example

  1. Metricbeat crashing the process
  2. Metricbeat logs a clear error
Status change to Failed: 1 error occurred: * 1 error: Error creating runner from config: 1 error: error creating aws metricset: failed DescribeRegions: operation error EC2: DescribeRegions, https response error StatusCode: 401, RequestID: 46361136-638d-4261-9646-8e9805e188d6, api error AuthFailure: AWS was not able to validate the provided access credentials

Definition of done

  • Log clear error message
  • Crash the process
  • Document what happens in the case credentials invalidation during cycle

Related tasks/epics

Checklist

Please follow the following checklist at the beginning of your work, please comment with a suggested high-level solution. It should include:

  • Comment describing high level implementation details
    • Include assumptions being taken
    • Mention relevant individuals with a reason (getting feedback, FYI etc)
  • Submit a PR for our technical index that includes breaking changes/ new features

Before closing this ticket

  • Commit the technical index PR
  • Reference to tech debts that shall be solved as we move forward

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions