Skip to content

Commit a236a10

Browse files
myoung34ArchiFleKs
authored andcommitted
improvement: Dont set -x in userdata to avoid printing sensitive informations in logs (terraform-aws-modules#1187)
1 parent b3e2c5b commit a236a10

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/launch_templates_with_managed_node_groups/templates/userdata.sh.tpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Content-Type: multipart/mixed; boundary="//"
33

44
--//
55
Content-Type: text/x-shellscript; charset="us-ascii"
6-
#!/bin/bash
7-
set -xe
6+
#!/bin/bash
7+
set -e
88

99
# Bootstrap and join the cluster
1010
/etc/eks/bootstrap.sh --b64-cluster-ca '${cluster_auth_base64}' --apiserver-endpoint '${endpoint}' ${bootstrap_extra_args} --kubelet-extra-args "${kubelet_extra_args}" '${cluster_name}'

templates/userdata.sh.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash -xe
1+
#!/bin/bash -e
22

33
# Allow user supplied pre userdata code
44
${pre_userdata}

0 commit comments

Comments
 (0)