The admin container provides an SSH server and is disabled by default. It allows you to log in as ec2-user using your EC2-registered SSH key.
1. Enable the Admin Container
Via User Data (at launch):
[settings.host-containers.admin]
enabled = true
Via Control Container (on a running instance):
enable-admin-container
Via API (if using a custom control container):
apiclient set host-containers.admin.enabled=true
2. Access the Admin Container
From the Control Container:
enter-admin-container
Or execute commands directly:
apiclient exec admin bash
Via SSH:
Once enabled, connect via SSH using your registered key.
3. Get a Root Shell
Once inside the admin container, run sheltie to obtain a full root shell in the Bottlerocket host. Note that most changes made as root will not persist across restarts due to the dm-verity filesystem setup.