在浏览器 AWS 控制台的 cloudformation 服务的堆栈上显示以下错误。
架构版本 2.2 需要文档类型(服务:AmazonSSM;状态代码:400;错误代码:InvalidDocumentSchemaVersion;请求 ID:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
CloudFormation 文档中的以下资源发生了这种情况:
InstanceConfigDocument:
Type: AWS::SSM::Document
Properties:
Content:
schemaVersion: "2.2"
description: Join Active Directory
mainSteps:
- action: aws:domainJoin
name: joiningDomain
inputs:
directoryId: !Ref ActiveDirectory
directoryName: myDirectoryName
dnsIpAddresses:
- !Select ['0', !GetAtt 'ActiveDirectory.DnsIpAddresses']
- !Select ['1', !GetAtt 'ActiveDirectory.DnsIpAddresses']
我该如何解决这个错误?