Skip to content

Commit

Permalink
pin eks module
Browse files Browse the repository at this point in the history
  • Loading branch information
johndietz committed Oct 12, 2021
1 parent 4bc9140 commit 684fb31
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
Binary file not shown.
1 change: 1 addition & 0 deletions gitops/terraform/base/eks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ module "vpc" {
}

module "eks" {
version = "17.20.0"
source = "terraform-aws-modules/eks/aws"
cluster_name = local.cluster_name
cluster_version = "1.17"
Expand Down
12 changes: 12 additions & 0 deletions scripts/nebulous/destroy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ echo

sleep 12

if [ -z "$BUCKET_RAND" ]
then
echo
echo '########################################'
echo '# ERROR #'
echo '########################################'
echo
echo 'you cannot run nebulous destroy without first setting your BUCKET_RAND value in your kubefirst.env file.'
echo 'please set and uncomment your BUCKET_RAND value in kubefirst.env and run the destroy operation again.'
exit 1;
fi

echo "establishing kubectl config"
K8S_CLUSTER_NAME=kubefirst
aws eks update-kubeconfig --region $AWS_DEFAULT_REGION --name $K8S_CLUSTER_NAME
Expand Down

0 comments on commit 684fb31

Please sign in to comment.