简体   繁体   中英

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. 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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM