10

When trying to restore File system from AWS Backup I'm getting the following error:

Access Denied
Insufficient privileges to perform this action. Please consult with the account administrator for necessary permissions.

enter image description here

This is weird since I have AdministratorAccess under my AWS user:

enter image description here

The file system created by running the CLI command:

aws efs create-file-system

In addition, I followed EKSWorkshop to create the EFS.

Any help will be much appreciated.

Amit Baranes
  • 7,398
  • 2
  • 31
  • 53

1 Answers1

14

If you change the policy on the backup vault screen you can start the restore.

It's deny by default.

For example, it works:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "AWS": "*"
            },
            "Action": [
                "backup:DeleteBackupVault",
                "backup:DeleteBackupVaultAccessPolicy",
                "backup:DeleteRecoveryPoint",
                "backup:StartCopyJob",
                "backup:StartRestoreJob",
                "backup:UpdateRecoveryPointLifecycle"
            ],
            "Resource": "*"
        }
    ]
}
Amit Baranes
  • 7,398
  • 2
  • 31
  • 53
  • It should be noted that simply changing the effect to `Allow` will allow any AWS principal to start a restore of any of the recovery points in the vault. Or worse yet, to delete recovery points. This could have serious data protection, GDPR or even regulatory implications. – David Gard Mar 22 '23 at 15:56