Skip to content

Commit 39feed1

Browse files
committed
Add notes about user_data
1 parent 65e2e94 commit 39feed1

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/docs/explanations/advanced-provider-configuration.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,20 @@ amazon_web_services:
117117
max_nodes: 5
118118
gpu: false # Set to true if using GPU instances
119119
launch_template:
120-
ami_id: ami-0abcdef1234567890 # Replace with your custom AMI ID
121-
pre_bootstrap_command: "echo 'Hello, World!'" # Command to run before the node joins the cluster
120+
# Replace with your custom AMI ID
121+
ami_id: ami-0abcdef1234567890
122+
# Command to run before the node joins the cluster
123+
pre_bootstrap_command: "echo 'Hello, World!'"
122124
```
123125

124126
**Parameters:**
125127

126128
- `ami_id` (Optional): The ID of the custom AMI to use for the nodes in this group. If specified, the `ami_type` is automatically set to `CUSTOM`.
127-
- `pre_bootstrap_command` (Optional): A command or script to execute on the node before it joins the Kubernetes cluster. This can be used for custom setup or configuration tasks.
129+
- `pre_bootstrap_command` (Optional): A command or script to execute on the node before
130+
it joins the Kubernetes cluster. This can be used for custom setup or configuration
131+
tasks. The format should be a single string in conformation with the shell syntax.
132+
This command is injected in the `user_data` field of the launch template. For more
133+
information, see [User Data](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html).
128134

129135
:::note
130136
If an `ami_id` is not provided, AWS will use the default Amazon Linux 2 AMI for the

0 commit comments

Comments
 (0)