簡體   English   中英

如何將 aws ssm 發送命令設置為沒有 3600 秒的默認執行時間?

[英]how do I set the aws ssm send-command to not have an executionTime default of 3600 seconds?

我可以在我的 send-command 語句本身中配置 TimeoutSeconds(我正在使用 python boto3 sdk),但我無法從我的 send-command 或 ssm 文檔中配置 ExecutionTimeout。 控制台可以選擇配置所有這些超時值,但我的代碼似乎無法配置。 任何幫助將不勝感激!

假設您使用的是模式 2.2,您需要為 timeoutSeconds 參數提供一個以秒為單位的值。

"inputs": {
  "timeoutSeconds": "3660",
  "runCommand": [
    "Start-Sleep -Seconds 3650"
    "Write-Out \"Done\""
  ]
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM