Setting Up EKS Replication

How to enable EKS replication with Arpio

Arpio uses Lambda functions that run in your AWS accounts to assist in backing up and restoring EKS clusters.  In order to back up customer-created EKS clusters, Arpio's Kubernetes delegate function's execution role needs to be given access to the EKS cluster's control plane.  The function's execution IAM role will be created automatically when the upon execution of the CloudFormation stack provided during application setup.  That role name will look something like: 


After you add an EKS cluster to your Arpio application, Arpio will check that the execution role has the appropriate permissions to access the cluster.  If it doesn't, Arpio will raise an issue in your application that contains the command you should run to grant it access.

It's easiest to use the command that Arpio generates for your cluster, but you can prepare your own command using the following example that adds the aws-auth ConfigMap in the kube-system namespace:

eksctl create iamidentitymapping \

 --cluster <my-cluster> \

 --region=<region-code> \

 --arn arn:aws:iam::<aws-account-id>:role/ArpioPrimaryK8sDel-... \

 --group system:masters \


This group (system:masters) is the same access the creator of the cluster is granted in AWS.  For this reason, when the recovery cluster is brought up, this step doesn't have to be repeated, as Arpio will have created it.

A less privileged group on the cluster is permissible, but it must have read access to everything one wishes to replicate.  (The default view role does not include reading secrets, for instance.)

After granting permissions to the above role, recovery point creation for your EKS workload will begin. In addition to being able to access the cluster's configuration to back it up, Arpio will then be able to find additional AWS resources your configuration depends upon such as ECR repositories and IAM roles.

Learn more about how Arpio replicates EKS cluster attributes in the EKS resource reference.