ブラウザ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']
このエラーを解決するにはどうすればよいですか?