Skip to content

Commit 23eef5c

Browse files
authored
Merge pull request #2575 from IABTechLab/swi-fix-ami-timeout
UID2-7223 Use 1 SSM session in AWS AMI build
2 parents b87cb54 + 29eb6a1 commit 23eef5c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Raise the connection timeout from the default 10s.
2+
# fixes "Timeout (12s) waiting for privilege escalation prompt" since May 2026
3+
[defaults]
4+
timeout = 60
5+
6+
# Reuse one persistent SSH connection for the whole play
7+
# (ControlMaster/ControlPersist) and pipe module execution over it (pipelining)
8+
# so we pay the slow SSM setup once instead of per task. ServerAlive keepalives
9+
# generate traffic so a long-running task's session isn't idle-reaped.
10+
# Intends to solve an issue where the playbook hangs, seemingly due to the above SSM
11+
# setup time.
12+
[ssh_connection]
13+
pipelining = True
14+
ssh_args = -o ControlMaster=auto -o ControlPersist=600s -o ServerAliveInterval=30 -o ServerAliveCountMax=20

0 commit comments

Comments
 (0)