Where to set aws access secret key for kube-up sh

0 votes

I am trying to setup a Kubernetes cluster on my AWS account using the kube-up.sh setup script that is bundled with kubernetes source at kubernetes/cluster/kube-up.sh

But when I ran kube-up.sh I am getting the following error:

pranjal:~/go/src/github.com/GoogleCloudPlatform/kubernetes/cluster$ ./kube-up.sh
Starting cluster using os distro: ubuntu
Starting cluster using provider: aws
... calling verify-prereqs
... calling kube-up
Uploading to Amazon S3
Creating kubernetes-staging-6b790c161af2b2c39939b542c73b775a
make_bucket failed: s3://kubernetes-staging-6b790c161af2b2c39939b542c73b775

I am sure that my the tool is not able to read my AWS Access Key and Secret. I stored it in .aws/config. I am not sure where I should set it for it to be able to read it correctly and work.

Oct 29, 2018 in Kubernetes by Hannah
• 18,520 points
897 views

1 answer to this question.

0 votes

put following commands into a file xxxxx

export     AWS_ACCESS_KEY_ID=$(cat ${AWS_ACCOUNT_CONFIGDIR}/id)
export AWS_SECRET_ACCESS_KEY=$(cat ${AWS_ACCOUNT_CONFIGDIR}/key)

then source that file prior to calling kube-up.sh

source xxxxx
kube-up.sh 

aws first looks at above pair of env vars prior to probing

~/.aws/credentials

which I find makes it easier to toggle between various aws accounts

answered Oct 29, 2018 by Kalgi
• 52,350 points

Related Questions In Kubernetes

0 votes
1 answer
0 votes
2 answers
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 52,350 points
1,411 views
0 votes
1 answer

Create LoadBalancer for kubernetes cluster in aws

Hello @Lina, If you're running your cluster on ...READ MORE

answered Oct 8, 2018 in Kubernetes by Kalgi
• 52,350 points
760 views
+1 vote
1 answer
0 votes
1 answer

Heron Failed to set packing plan for topology 'WordCountTopology'

This error occurs becaouse of zookeeper running ...READ MORE

answered Aug 29, 2018 in Kubernetes by Kalgi
• 52,350 points
651 views
0 votes
1 answer

Command to get the secret key used to login into the dashboard

Hey @Lina, use this command you'll get ...READ MORE

answered Oct 8, 2018 in Kubernetes by Kalgi
• 52,350 points
691 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP