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
• 14,080 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

put following commands into a file xxxxx


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

source xxxxx

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


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

answered Oct 29, 2018 by Kalgi
• 35,800 points

Related Questions In Kubernetes

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
• 35,800 points
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
• 35,800 points
0 votes
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
• 35,800 points
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
• 35,800 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.