Skip to content

Commit 56c43ff

Browse files
committed
Update CFN to use correct, persisted environment variable for stack name. Fixes aws-samples#486
1 parent 2b88946 commit 56c43ff

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

01-path-basics/101-start-here/scripts/lab-ide-build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export EKS_SERVICE_ROLE=$(aws cloudformation describe-stacks --stack-name $AWS_M
5454
# Persist lab variables
5555
echo "AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION" >> ~/.bashrc
5656
echo "AWS_AVAILABILITY_ZONES=$AWS_AVAILABILITY_ZONES" >> ~/.bashrc
57+
echo "AWS_MASTER_STACK=$AWS_MASTER_STACK" >> ~/.bashrc
5758
echo "KOPS_STATE_STORE=$KOPS_STATE_STORE" >> ~/.bashrc
5859

5960
# Persist EKS variables

01-path-basics/102-your-first-cluster/readme.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ To launch your worker nodes, run the following CloudFormation CLI command:
6666
--stack-name k8s-workshop-worker-nodes \
6767
--template-url https://amazon-eks.s3-us-west-2.amazonaws.com/1.10.3/2018-06-05/amazon-eks-nodegroup.yaml \
6868
--capabilities "CAPABILITY_IAM" \
69-
--parameters "[{\"ParameterKey\": \"KeyName\", \"ParameterValue\": \"${AWS_STACK_NAME}\"},
69+
--parameters "[{\"ParameterKey\": \"KeyName\", \"ParameterValue\": \"${AWS_MASTER_STACK}\"},
7070
{\"ParameterKey\": \"NodeImageId\", \"ParameterValue\": \"${EKS_WORKER_AMI}\"},
7171
{\"ParameterKey\": \"ClusterName\", \"ParameterValue\": \"k8s-workshop\"},
7272
{\"ParameterKey\": \"NodeGroupName\", \"ParameterValue\": \"k8s-workshop-nodegroup\"},
7373
{\"ParameterKey\": \"ClusterControlPlaneSecurityGroup\", \"ParameterValue\": \"${EKS_SECURITY_GROUPS}\"},
7474
{\"ParameterKey\": \"VpcId\", \"ParameterValue\": \"${EKS_VPC_ID}\"},
7575
{\"ParameterKey\": \"Subnets\", \"ParameterValue\": \"${EKS_SUBNET_IDS}\"}]"
7676

77-
The `AWS_STACK_NAME`, `EKS_WORKER_AMI`, `EKS_VPC_ID`, `EKS_SUBNET_IDS`, and `EKS_SECURITY_GROUPS` environment variables should have been set during the link:../101-start-here[Cloud9 Environment Setup].
77+
The `AWS_MASTER_STACK`, `EKS_WORKER_AMI`, `EKS_VPC_ID`, `EKS_SUBNET_IDS`, and `EKS_SECURITY_GROUPS` environment variables should have been set during the link:../101-start-here[Cloud9 Environment Setup].
7878

7979
Node provisioning usually takes less than 5 minutes. You can query the status of your cluster with the following command. When your cluster status is `CREATE_COMPLETE`, you can proceed.
8080

0 commit comments

Comments
 (0)