Method: Aws::Lightsail::Types::CreateInstancesRequest#user_data

Defined in:
lib/aws-sdk-lightsail/types.rb

#user_dataString

A launch script you can create that configures a server with additional user data. For example, you might want to run ‘apt-get -y update`.

<note markdown=“1”> Depending on the machine image you choose, the command to get software on your instance varies. Amazon Linux and CentOS use ‘yum`, Debian and Ubuntu use `apt-get`, and FreeBSD uses `pkg`. For a complete list, see the [Amazon Lightsail Developer Guide].

</note>

[1]: docs.aws.amazon.com/lightsail/latest/userguide/compare-options-choose-lightsail-instance-image

Returns:

  • (String)


4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
# File 'lib/aws-sdk-lightsail/types.rb', line 4074

class CreateInstancesRequest < Struct.new(
  :instance_names,
  :availability_zone,
  :custom_image_name,
  :blueprint_id,
  :bundle_id,
  :user_data,
  :key_pair_name,
  :tags,
  :add_ons,
  :ip_address_type)
  SENSITIVE = []
  include Aws::Structure
end