简体   繁体   English

如何将 aws ssm 发送命令设置为没有 3600 秒的默认执行时间?

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

I am able to configure TimeoutSeconds in my send-command statement itself (I'm using python boto3 sdk) but I can't configure the ExecutionTimeout from my send-command or the ssm document.我可以在我的 send-command 语句本身中配置 TimeoutSeconds(我正在使用 python boto3 sdk),但我无法从我的 send-command 或 ssm 文档中配置 ExecutionTimeout。 The console has the option to configure all these timeout values, but I can't seem to from my code.控制台可以选择配置所有这些超时值,但我的代码似乎无法配置。 Any help will be appreciated!任何帮助将不胜感激!

Assuming you are using schema 2.2, you need to give the timeoutSeconds parameter a value in seconds.假设您使用的是模式 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