Skip to content

Commit

Permalink
fix: Add ${bootstrap_extra_args} to windows launch template (aws-ia#1242
Browse files Browse the repository at this point in the history
)

Co-authored-by: Linus Guan <lhg@amazon.com>
Resolves undefined
  • Loading branch information
Linus Guan authored and allamand committed Jan 10, 2023
1 parent 39b0ffb commit 04102f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/launch-templates/templates/userdata-windows.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if ($disks_to_adjust -ne $null) {
[string]$EKSBinDir = "$env:ProgramFiles\Amazon\EKS"
[string]$EKSBootstrapScriptName = 'Start-EKSBootstrap.ps1'
[string]$EKSBootstrapScriptFile = "$EKSBinDir\$EKSBootstrapScriptName"
& $EKSBootstrapScriptFile -EKSClusterName ${eks_cluster_id} -KubeletExtraArgs '${kubelet_extra_args}' 3>&1 4>&1 5>&1 6>&1
& $EKSBootstrapScriptFile -EKSClusterName ${eks_cluster_id} ${bootstrap_extra_args} -KubeletExtraArgs '${kubelet_extra_args}' 3>&1 4>&1 5>&1 6>&1
$LastError = if ($?) { 0 } else { $Error[0].Exception.HResult }

${post_userdata}
Expand Down

0 comments on commit 04102f1

Please sign in to comment.