gpt4 book ai didi

amazon-web-services - 遇到不支持的属性版本

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

当我尝试运行此 CloudFormation 模板时,在 GitlabRunnerASG 上收到错误“遇到不支持的属性版本”:

        "Resources": {
"GitlabRunnerASG": {
"Type": "AWS::AutoScaling::AutoScalingGroup",
"Properties": {
"AvailabilityZones": {
"Ref": "SubnetASGAZ"
},
"LaunchTemplate": {
"LaunchTemplateId": {
"Ref":"MyLaunchTemplate"
}
},
"Version": {
"Fn::GetAtt":[
"MyLaunchTemplate",
"LatestVersionNumber"
]
},
"VPCZoneIdentifier": {
"Ref": "SubnetIds"
},
"MaxSize": {
"Ref": "NumberOfInstances"
},
"MinSize": {
"Ref": "NumberOfInstances"
},
"MyLaunchTemplate": {
"Type": "AWS::EC2::LaunchTemplate",
"Properties": {
"LaunchTemplateName":{"Fn::Sub":"${AWS::StackName}-launch-template"},
"LaunchTemplateData": {
"SecurityGroups": {
"Ref": "SecurityGroupName"
},
"InstanceType": {
"Ref": "EC2Type"
},
"ImageId": {
"Ref": "RunnerAMIId"
},
"IamInstanceProfile": {
"Arn":{"Fn::GetAtt": ["MyIamInstanceProfile", "Arn"]}
},
"BlockDeviceMappings": [
{
"DeviceName": "/dev/xvda",
"Ebs": {
"DeleteOnTermination": true,
"VolumeSize": {
"Ref": "EC2HardDriveSize"
},
"VolumeType": "gp2"
}
}
],
"UserData": {
"Fn::Base64": {
"Fn::Sub": ""
}
}
}
}
}

最佳答案

AWS::AutoScaling::AutoScalingGroup没有 Version 属性。也许这应该是 LaunchTemplate 的一部分?

关于amazon-web-services - 遇到不支持的属性版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66660645/

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