gpt4 book ai didi

amazon-web-services - 无法创建 CloudFormation 堆栈以从 AWS Backup for FsxN 创建卷

转载 作者:行者123 更新时间:2023-12-03 07:30:15 25 4
gpt4 key购买 nike

收到错误由于错误而无法呈现模板。:YAMLException:第 9 行第 7 列映射条目的缩进错误:名称: 使用 AWS BACKUP 通过 CloudFormation 创建卷时backupID

我指的是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"

最佳答案

BackupId 应该是一个属性,OntapConfiguration 的属性应该是字符串:

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"

关于amazon-web-services - 无法创建 CloudFormation 堆栈以从 AWS Backup for FsxN 创建卷,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73478531/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com