AdditionalInstanceConfiguration - EC2 Image Builder


In addition to your infrastruction configuration, these settings provide an extra layer of control over your build instances. For instances where Image Builder installs the Systems Manager agent, you can choose whether to keep it for the AMI that you create. You can also specify commands to run on launch for all of your build instances.



Contains settings for the Systems Manager agent on your build instance.

Type: SystemsManagerAgent object

Required: No


Use this property to provide commands or a command script to run when you launch your build instance.


The userDataOverride property replaces any commands that Image Builder might have added to ensure that Systems Manager is installed on your Linux build instance. If you override the user data, make sure that you add commands to install Systems Manager, if it is not pre-installed on your base image.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 21847.

Pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: