Editing User data
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | <code>user_data</code> ( | + | <code>user_data</code> (Optional) user data to provide when [[launching]] the instance, such as [[shell scripts]]. |
− | + | * Notes: Do not pass gzip-compressed data via this argument; see <code>[[user_data_base64]]</code> instead. Updates to this field will trigger a stop/start of the [[EC2]] instance by default. If the <code>[[user_data_replace_on_change]]</code> is set then updates to this field will trigger a destroy and recreate | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | * https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#user_data | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Related == | == Related == | ||
+ | * <code>[[aws_instance]]</code> | ||
* <code>[[templatefile]], *.[[tftpl]]</code> | * <code>[[templatefile]], *.[[tftpl]]</code> | ||
− | * <code> | + | * <code>[[key_name]]</code> |
* <code>http://[[169.254.169.254]]/latest/user-data</code> | * <code>http://[[169.254.169.254]]/latest/user-data</code> | ||
* https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-add-user-data.html | * https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-add-user-data.html | ||
* <code>[[/var/lib/cloud/instance/user-data.txt]]</code> | * <code>[[/var/lib/cloud/instance/user-data.txt]]</code> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
* {{user_data}} | * {{user_data}} | ||
− | |||
* {{aws_instance}} | * {{aws_instance}} | ||
+ | * {{terraform aws resources}} | ||
[[Category:Terraform]] | [[Category:Terraform]] |
Advertising: