Skip to content

Commit

Permalink
eks lt
Browse files Browse the repository at this point in the history
  • Loading branch information
awsandy committed Sep 6, 2020
1 parent 24b2c9a commit 31099a0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
Empty file added .sh
Empty file.
2 changes: 1 addition & 1 deletion aws2tf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ fi


if [ "$t" == "eks" ]; then
pre="3*"
pre="30*"
if [ "$i" == "no" ]; then
echo "Cluster Name null exiting - specify with -i <cluster-name>"
exit
Expand Down
3 changes: 3 additions & 0 deletions scripts/255-get-launch-templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ for c in `seq 0 0`; do
# for k in `cat t1.txt`; do
# echo $k
# done

ud=`$AWS ec2 describe-launch-template-versions --launch-template-id $cname | jq .LaunchTemplateVersions[0].LaunchTemplateData.UserData | tr -d '"' | base64 --decode`
$AWS ec2 describe-launch-template-versions --launch-template-id $cname | jq .LaunchTemplateVersions[0].LaunchTemplateData.UserData | tr -d '"' | base64 --decode > $cname.sh
file="t1.txt"
fn=`printf "%s__%s.tf" $ttft $cname`
echo $aws2tfmess > $fn
Expand Down
9 changes: 7 additions & 2 deletions scripts/get-eks-cluster-nodegroups.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,12 @@ if [ "$kcount" -gt "0" ]; then
fi

done <"$file" # done while


# pick up the launch template here
ltid=`echo $awsout | jq .nodegroup.launchTemplate.id | tr -d '"'`
echo "ltid=$ltid"
../../scripts/eks-launch_template.sh $ltid

done # done for i
fi
done
Expand All @@ -162,7 +167,7 @@ if [ "$kcount" -gt "0" ]; then
done
fi

## Look for unmanaged Nodes vis autoscaloing group
## Look for unmanaged Nodes vis autoscaling group

../../scripts/eks-auto-scaling-groups.sh $cln

Expand Down

0 comments on commit 31099a0

Please sign in to comment.