mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-16 00:34:31 +01:00
* chore: Move examples that are more like test cases to the new `tests/` directory * chore: Stash * feat: Add better examples for EKS managed node groups * chore: Add better examples for self-managed node groups * chore: Update docs and correct `nodegroup` to `node group`
11 lines
564 B
Smarty
11 lines
564 B
Smarty
# Custom user data template provided for rendering
|
|
<powershell>
|
|
${pre_bootstrap_user_data ~}
|
|
[string]$EKSBinDir = "$env:ProgramFiles\Amazon\EKS"
|
|
[string]$EKSBootstrapScriptName = 'Start-EKSBootstrap.ps1'
|
|
[string]$EKSBootstrapScriptFile = "$EKSBinDir\$EKSBootstrapScriptName"
|
|
& $EKSBootstrapScriptFile -EKSClusterName ${cluster_name} -APIServerEndpoint ${cluster_endpoint} -Base64ClusterCA ${cluster_auth_base64} ${bootstrap_extra_args} 3>&1 4>&1 5>&1 6>&1
|
|
$LastError = if ($?) { 0 } else { $Error[0].Exception.HResult }
|
|
${post_bootstrap_user_data ~}
|
|
</powershell>
|