@@ -52,23 +52,23 @@ export EKS_SECURITY_GROUPS=$(aws cloudformation describe-stacks --stack-name $AW
52
52
export EKS_SERVICE_ROLE=$( aws cloudformation describe-stacks --stack-name $AWS_MASTER_STACK | jq -r ' .Stacks[0].Outputs[]|select(.OutputKey=="EksServiceRoleArn")|.OutputValue' )
53
53
54
54
# Persist lab variables
55
- echo " AWS_AVAILABILITY_ZONES= $AWS_AVAILABILITY_ZONES " >> ~ /.bash_profile
56
- echo " KOPS_STATE_STORE= $KOPS_STATE_STORE " >> ~ /.bash_profile
57
- echo " export AWS_AVAILABILITY_ZONES KOPS_STATE_STORE" >> ~ /.bash_profile
55
+ echo " AWS_DEFAULT_REGION= $AWS_DEFAULT_REGION " >> ~ /.bashrc
56
+ echo " AWS_AVAILABILITY_ZONES= $AWS_AVAILABILITY_ZONES " >> ~ /.bashrc
57
+ echo " KOPS_STATE_STORE= $KOPS_STATE_STORE " >> ~ /.bashrc
58
58
59
59
# Persist EKS variables
60
- echo " EKS_VPC_ID=$EKS_VPC_ID " >> ~ /.bash_profile
61
- echo " EKS_SUBNET_IDS=$EKS_SUBNET_IDS " >> ~ /.bash_profile
62
- echo " EKS_SECURITY_GROUPS=$EKS_SECURITY_GROUPS " >> ~ /.bash_profile
63
- echo " EKS_SERVICE_ROLE=$EKS_SERVICE_ROLE " >> ~ /.bash_profile
60
+ echo " EKS_VPC_ID=$EKS_VPC_ID " >> ~ /.bashrc
61
+ echo " EKS_SUBNET_IDS=$EKS_SUBNET_IDS " >> ~ /.bashrc
62
+ echo " EKS_SECURITY_GROUPS=$EKS_SECURITY_GROUPS " >> ~ /.bashrc
63
+ echo " EKS_SERVICE_ROLE=$EKS_SERVICE_ROLE " >> ~ /.bashrc
64
64
65
65
# EKS-Optimized AMI
66
66
if [ " $AWS_DEFAULT_REGION " == " us-east-1" ]; then
67
67
export EKS_WORKER_AMI=ami-dea4d5a1
68
68
elif [ " $AWS_DEFAULT_REGION " == " us-west-2" ]; then
69
69
export EKS_WORKER_AMI=ami-73a6e20b
70
70
fi
71
- echo " EKS_WORKER_AMI=$EKS_WORKER_AMI " >> ~ /.bash_profile
71
+ echo " EKS_WORKER_AMI=$EKS_WORKER_AMI " >> ~ /.bashrc
72
72
73
73
# Create SSH key
74
74
ssh-keygen -t rsa -N " " -f ~ /.ssh/id_rsa
0 commit comments