Skip to content

AWS Backup EKS Integration - Service Role Access Entry Creation Failed

0

Issue: AWS Backup failing to backup EKS cluster with access denied error

Root Cause: AWSServiceRoleForBackup lacks eks:CreateAccessEntry permission.

Failed Solutions Attempted:

  • Adding inline policy to service role: Cannot modify AWS-managed service-linked role
  • Changing authentication mode: Cannot revert from API_AND_CONFIG_MAP to CONFIG_MAP (unsupported operation)

Current State:

  • Cluster authentication mode: API_AND_CONFIG_MAP
  • Service role added to aws-auth ConfigMap but AWS Backup still attempts access entry creation instead of using ConfigMap method

Request: Need guidance on how AWS Backup can authenticate with EKS when service-linked roles cannot create access entries.

2 Answers
1
Accepted Answer

This is a known AWS Backup limitation where the AWSServiceRoleForBackup service-linked role lacks necessary EKS permissions for clusters using API_AND_CONFIG_MAP authentication mode. Since you cannot modify AWS-managed service-linked roles, you have three options:

Create a custom service role for AWS Backup instead of using the service-linked role, giving it the required eks:CreateAccessEntry permission along with your backup policies, then specify this role when configuring the backup plan.

Manually create the access entry yourself before backup runs: use eks:CreateAccessEntry to grant the AWSServiceRoleForBackup role principal ARN access to your cluster with appropriate permissions (typically eks:AccessEntryAdmin or similar).

Temporarily switch authentication modes (if possible) by recreating the cluster or specific node groups with CONFIG_MAP-only mode, though this may not be feasible for existing production clusters.

answered 8 months ago

AWS
EXPERT

reviewed 8 months ago

0

This option worked for my case - I created a custom service role for AWS Backup instead of using the service-linked role, I gave the role the required eks:CreateAccessEntry permission along with other backup policies, then I specified this role when configuring the backup plan.

answered 8 months ago

EXPERT

reviewed 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.