Skip to content

Commit af287e1

Browse files
committed
Move environment variables from .bash_profile to .bashrc
1 parent f491524 commit af287e1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,23 @@ export EKS_SECURITY_GROUPS=$(aws cloudformation describe-stacks --stack-name $AW
5252
export EKS_SERVICE_ROLE=$(aws cloudformation describe-stacks --stack-name $AWS_MASTER_STACK | jq -r '.Stacks[0].Outputs[]|select(.OutputKey=="EksServiceRoleArn")|.OutputValue')
5353

5454
# 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
5858

5959
# 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
6464

6565
# EKS-Optimized AMI
6666
if [ "$AWS_DEFAULT_REGION" == "us-east-1" ]; then
6767
export EKS_WORKER_AMI=ami-dea4d5a1
6868
elif [ "$AWS_DEFAULT_REGION" == "us-west-2" ]; then
6969
export EKS_WORKER_AMI=ami-73a6e20b
7070
fi
71-
echo "EKS_WORKER_AMI=$EKS_WORKER_AMI" >> ~/.bash_profile
71+
echo "EKS_WORKER_AMI=$EKS_WORKER_AMI" >> ~/.bashrc
7272

7373
# Create SSH key
7474
ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa

0 commit comments

Comments
 (0)