Home > Blockchain >  Unable to create a CloudFormation stack to create a Volume from AWS Backup for FsxN
Unable to create a CloudFormation stack to create a Volume from AWS Backup for FsxN

Time:08-25

Getting an error Cannot render the template because of an error.: YAMLException: bad indentation of a mapping entry at line 9, column 7: Name: while creating a Volume Via CloudFormation from AWS BACKUP using a backupID.

I am referring to AWS Doc for Fsx

---
Description: "This is Cloudformation template to Create Volme from backup FSxN."
Resources:      
  OntapVolumeFromBackupWithAllConfigs:
    Type: "AWS::FSx::Volume"
    Properties:
    BackupId: "74fe2af2-6815-494c-a4de-53d8188e3a5c"
      Name: "RestBackupFSxVolume01"
      OntapConfiguration:
        JunctionPath: "/RestBackupFSxVolume01"
        SecurityStyle: "UNIX"
        SizeInMegabytes: 41
        StorageEfficiencyEnabled: True
        StorageVirtualMachineId: "svm-0524816479dbbe473"
        TieringPolicy:
          CoolingPeriod: 42
          Name: "AUTO"

CodePudding user response:

BackupId should be a property, and the properties of OntapConfiguration should be strings:

Resources:      
  OntapVolumeFromBackupWithAllConfigs:
    Type: "AWS::FSx::Volume"
    Properties:
      BackupId: "74fe2af2-6815-494c-a4de-53d8188e3a5c"
      Name: "RestBackupFSxVolume01"
      OntapConfiguration:
        JunctionPath: "/RestBackupFSxVolume01"
        SecurityStyle: "UNIX"
        SizeInMegabytes: "41"
        StorageEfficiencyEnabled: "true"
        StorageVirtualMachineId: "svm-0524816479dbbe473"
        TieringPolicy:
          CoolingPeriod: 42
          Name: "AUTO"
  • Related