Skip to content

Commit fb68751

Browse files
Disable Amazon Linux cloud-init package upgrades (#8438)
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent a7366e5 commit fb68751

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎utils/build/virtual_machine/provisions/auto-inject/auto-inject_init_vm_config.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,11 @@
255255
- os_type: linux
256256
os_distro: rpm
257257
remote-command: |
258+
# Amazon Linux cloud-init runs "yum --security upgrade" on every new instance.
259+
# Updating docker restarts the daemon and kills containers mid-test.
260+
# Baked into the AMI; takes effect on the next boot.
261+
sudo mkdir -p /etc/cloud/cloud.cfg.d
262+
echo 'repo_upgrade: none' | sudo tee /etc/cloud/cloud.cfg.d/99-disable-repo-upgrade.cfg
258263
#Allow DD env variables from ssh
259264
echo 'AcceptEnv DD_*' | sudo tee -a /etc/ssh/sshd_config
260265
sudo id -u datadog &>/dev/null || sudo useradd -m datadog

0 commit comments

Comments
 (0)