AWS Backup using CloudFormation

0

Although I have full administrator access, I am facing the below error while importing a JSON file into my CloudFormation stack:

Resource handler returned message: "Insufficient privileges to perform this action. (Service: Backup, Status Code: 403, Request ID: ccbc62b1-0e6c-4713-93fb-f3e911883744)" (RequestToken: 973c8d39-07a6-02b7-317a-781aeebf5c7d, HandlerErrorCode: GeneralServiceException)

{ "AWSTemplateFormatVersion": "2010-09-09", "Resources": { "AWSBackupEFSPlan": { "DeletionPolicy": "Retain", "Type": "AWS::Backup::BackupPlan", "Properties": { "BackupPlan": { "AdvancedBackupSettings": [ { "BackupOptions": { "WindowsVSS": "disabled" }, "ResourceType": "EFS" } ], "BackupPlanName": "aws/efs/automatic-backup-plan", "BackupPlanRule": [ { "CompletionWindowMinutes": 180, "CopyActions": [ { "DestinationBackupVaultArn": "arn:aws:backup:<ZONE>:<ID>:backup-vault:Default", "Lifecycle": { "DeleteAfterDays": 14 } } ], "EnableContinuousBackup": false, "Lifecycle": { "DeleteAfterDays": 7 }, "RecoveryPointTags": { "Environment": "Production", "Component": "Elastic File System", "Application": "GHI/GHLAD" }, "RuleName": "aws/efs/automatic-backup-rule", "ScheduleExpression": "cron(0 5 ? * * *)", "ScheduleExpressionTimezone": "Asia/Beirut", "StartWindowMinutes": 60, "TargetBackupVault": "aws/efs/automatic-backup-vault" } ] } } } } }

  • Hi, is the above your full CFN template ? It seems to me that the BackupSelection is missing. Can you publish it?

1 Antwort
3
Akzeptierte Antwort

Hello.

The backup vault "aws/efs/automatic-backup-vault" is for EFS' default automatic backup, so I don't think it can be imported into CloudFormation etc.
The backup plan "aws/efs/automatic-backup-plan" is probably managed by AWS, so I don't think it can be managed by CloudFormation.
https://repost.aws/knowledge-center/efs-disable-automatic-backups
https://docs.aws.amazon.com/aws-backup/latest/devguide/create-auto-backup.html

The Amazon EFS automatic backup vault aws/efs/automatic-backup-vault is reserved for those automatic backups only. If you use it as a destination for other backup plans, you will receive an "insufficient privileges" error.

profile picture
EXPERTE
beantwortet vor 3 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten
profile pictureAWS
EXPERTE
überprüft vor 3 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen