Configuring an AWS Managed Collector scraper with an EKS cluster in API authentication mode

0

I have several active EKS clusters that are configured in API authentication mode in their access configuration. I'm trying to work out how to add an AWS Managed Collector for Amazon Managed Prometheus as per this guide but all the instructions relate to updating the cluster aws-auth ConfigMap to grant access to the collector, which isn't relevant in API authentication mode.

I have tried adding an EKS access entry instead, but the access entry refuses to create, giving the error (console or CLI):

The caller is not allowed to modify access entries with a principalArn value of a Service Linked Role

but unfortunately the service-linked role is the only role available when the managed collector is created. Is there a way to grant the necessary access to the collector? The cluster authentication mode is a one-way decision and can't be reverted to API and ConfigMap anymore. Updating the ConfigMap isn't going to have any effect as long as the authentication mode is locked to API.

2개 답변
2
수락된 답변

AMP managed scraping is not yet supported with EKS access entries. This is a WIP and coming soon.

AWS
답변함 2달 전
profile picture
전문가
검토됨 한 달 전
0

Unfortunately modifying the ConfigMap will not grant the necessary access to the Amazon Managed Prometheus collector since it relies on a service-linked role.

Would you consider these options to troubleshoot ?

  • Switch the cluster authentication mode to use both API and Web ID token authentication. This will enable using the aws-auth ConfigMap again. However, changing the authentication mode is not reversible.
  • Check if the necessary permissions can be granted to the service-linked role directly using IAM policies.
  • Stand up a separate EKS cluster just for use with the Amazon Managed Prometheus collector to leverage the standard configuration using the aws-auth ConfigMap.

Here is a doc about a similar use case. Enjoy. https://docs.aws.amazon.com/prometheus/latest/userguide/using-service-linked-roles.html

profile picture
전문가
답변함 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠