Optional ReadonlycommandsCommands to execute on the instance, processed in alphabetical order of their key names.
Use cases: Post-install configuration; Custom setup scripts
AWS: CloudFormation::Init commands
Validation: Optional; map of command identifier to CommandProps
Optional ReadonlyfilesFiles to create on the instance. Content is pulled from a local source file.
Use cases: Configuration file deployment; Script placement
AWS: CloudFormation::Init files
Validation: Optional; map of filename to FileProps
Optional ReadonlygroupsLinux/UNIX groups to create. Not supported on Windows.
Use cases: Application-specific group creation; GID management
AWS: CloudFormation::Init groups
Validation: Optional; map of group name to GroupProps
Optional ReadonlypackagesSoftware packages to install. Supports apt, msi, python, rpm, rubygems, yum, and Zypper. On Windows, only the MSI installer is supported.
Use cases: Automated software installation; OS-level dependency management
AWS: CloudFormation::Init packages
Validation: Optional; map of package identifier to PackageProps
Optional ReadonlyservicesSystem services to enable, disable, or restart. Uses sysvinit/systemd on Linux, Windows Service Manager on Windows.
Use cases: Service lifecycle management; Boot-time service configuration
AWS: CloudFormation::Init services
Validation: Optional; map of OS service name to ServiceProps
Optional ReadonlysourcesArchive files to download and extract into target directories. Supported on both Linux and Windows.
Use cases: Application artifact extraction; Config archive deployment
AWS: CloudFormation::Init sources
Validation: Optional; map of target directory path to SourceProps
Optional ReadonlyusersLinux/UNIX user accounts to create. Not supported on Windows.
Use cases: Application service accounts; User provisioning with group membership
AWS: CloudFormation::Init users
Validation: Optional; map of username to UserProps
A single CloudFormation Init config containing packages, groups, users, sources, files, commands, and services to apply during bootstrap.