Class: Aws::Imagebuilder::Types::AdditionalInstanceConfiguration
- Inherits:
-
Struct
- Object
- Struct
- Aws::Imagebuilder::Types::AdditionalInstanceConfiguration
- Defined in:
- gems/aws-sdk-imagebuilder/lib/aws-sdk-imagebuilder/types.rb
Overview
When making an API call, you may pass AdditionalInstanceConfiguration data as a hash:
{
systems_manager_agent: {
uninstall_after_build: false,
},
user_data_override: "UserDataOverride",
}
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.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#systems_manager_agent ⇒ Types::SystemsManagerAgent
Contains settings for the Systems Manager agent on your build instance.
-
#user_data_override ⇒ String
Use this property to provide commands or a command script to run when you launch your build instance.
Instance Attribute Details
#systems_manager_agent ⇒ Types::SystemsManagerAgent
Contains settings for the Systems Manager agent on your build instance.
60 61 62 63 64 65 |
# File 'gems/aws-sdk-imagebuilder/lib/aws-sdk-imagebuilder/types.rb', line 60 class AdditionalInstanceConfiguration < Struct.new( :systems_manager_agent, :user_data_override) SENSITIVE = [] include Aws::Structure end |
#user_data_override ⇒ String
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.
IyEvYmluL2Jhc2gKbWtkaXIgLXAgL3Zhci9iYi8KdG91Y2ggL3Zhci$
:
#!/bin/bash
mkdir -p /var/bb/
touch /var
60 61 62 63 64 65 |
# File 'gems/aws-sdk-imagebuilder/lib/aws-sdk-imagebuilder/types.rb', line 60 class AdditionalInstanceConfiguration < Struct.new( :systems_manager_agent, :user_data_override) SENSITIVE = [] include Aws::Structure end |