同じスタック内のリソース作成を遅延させることは可能ですか? DCとすべての設定が完了したら、ドメインに参加する必要のある別のサーバーがあります。両方のサーバーは同じスタック内に作成されます。私はwaithandleを使用してみましたが、同時に両方のリソースを同時に作成し、待機ハンドルの期間中、進行中の作成を示します。同じスタック内の輻輳遅延リソースの作成
編集:要求されたように、コード:DCサーバの 1.ユーザデータは
# "Fn::Base64":
# Fn::Join ["", [
# "<script>cfn-init -v --stack ", !Ref "AWS::StackName", " --resource DC --configsets ascending --region", !Ref "AWS::Region", "\n",
# "cfn-signal.exe -e 0 ", Fn::Base64 !Ref DCServerWaitHandle, "</script>"]]
待機が
DCServerWaitHandle:
Type: AWS::CloudFormation::WaitConditionHandle
DCServerWaitCondition:
Type: AWS::CloudFormation::WaitCondition
DependsOn: DC
Properties:
Handle: !Ref DCServerWaitHandle
Timeout: 600
が、その後構築するためにDCを600秒間待つ必要があり、他のサーバーが持つハンドル依存関係:DCプロパティ