Skip to content

Commit 7cf7ab3

Browse files
authored
Apply suggestions from code review
1 parent 557f155 commit 7cf7ab3

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

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

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,23 +128,30 @@ amazon_web_services:
128128
# Replace with your custom AMI ID
129129
ami_id: ami-0abcdef1234567890
130130
# Command to run before the node joins the cluster
131-
pre_bootstrap_command: "echo 'Hello, World!'"
132-
```
131+
pre_bootstrap_command: |
132+
#!/bin/bash
133+
# This script is executed before the node is bootstrapped
134+
# You can use this script to install additional packages or configure the node
135+
# For example, to install the `htop` package, you can run:
136+
# sudo apt-get update
137+
# sudo apt-get install -y htop"
133138

134139
**Parameters:**
135140

136-
- `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`.
141+
- `ami_id` (Optional): The ID of the custom AMI to use for the nodes in this group; this assumes the AMI provided is an EKS-optimized AMI derivative. If specified, the `ami_type` is automatically set to `CUSTOM`.
137142
- `pre_bootstrap_command` (Optional): A command or script to execute on the node before
138143
it joins the Kubernetes cluster. This can be used for custom setup or configuration
139144
tasks. The format should be a single string in conformation with the shell syntax.
140145
This command is injected in the `user_data` field of the launch template. For more
141146
information, see [User Data](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html).
142147

148+
> If you're using a `launch_template` with a custom `ami_id`, there's an issue with updating the `scaling`.desired_size` via Nebari configuration (terraform). To scale up, you must recreate the node group or adjust the scaling settings directly in the AWS Console UI (recommended). We are aware of this inconsistency and plan to address it in a future update.
149+
143150
:::note
144151
If an `ami_id` is not provided, AWS will use the default Amazon Linux 2 AMI for the
145-
specified instance type. You can find the latest optimized AMI IDs for Amazon EKS in you
146-
cluster region by inspecting its respective SSM parameter. For more information, see
147-
[Retrieve recommended Amazon Linux AMI IDs](https://docs.aws.amazon.com/eks/latest/userguide/retrieve-ami-id.html).
152+
specified instance type. You can find the latest optimized AMI IDs for Amazon EKS in your
153+
cluster region by inspecting its respective SSM parameters. For more information, see
154+
[Retrieve recommended Amazon Linux AMI IDs](https://docs.aws.amazon.com/eks/latest/userguide/retrieve-ami-id.html).
148155
:::
149156

150157
</TabItem>

0 commit comments

Comments
 (0)