amazon web services - Where to set aws access/secret key for kube-up.sh to work correctly in Kubernetes (aws) -
i trying setup kubernetes cluster on aws account using kube-up.sh
setup script bundled kubernetes source @ kubernetes/cluster/kube-up.sh
but when ran kube-up.sh getting 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 amazon s3 creating kubernetes-staging-6b790c161af2b2c39939b542c73b775a make_bucket failed: s3://kubernetes-staging-6b790c161af2b2c39939b542c73b775
i sure tool not able read aws access key , secret. stored in .aws/config. not sure should set able read correctly , work.
after bit of searching figured out solution problem.
a lot of aws configuration goes config-default.sh file. there no option set access key id, secret access key there (which might make sense cluster/aws/config-default.sh file part of source code , credentials should saved somewhere else, @ safer place)
i realized after seeing kubernetes/cluster/aws/util.sh source code kubernetes calls aws command line tool internally make changes aws infrastructure.
so having aws command line tool installed , configured correctly job of solving problem.
once issued following command:
aws configure
and answered prompts entering id/key saved these values file:
~/.aws/credentials
see details here
this solved problem , kube-up.sh worked after did this.
Comments
Post a Comment