Skip to content

Commit 7f15a7a

Browse files
authored
Merge pull request aws-samples#308 from ydonfeld/master
KOPS couldn't read from the s3 bucket - add env. variables workaround to docs
2 parents 4d0b8b4 + e8ac68e commit 7f15a7a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

cluster-install/readme.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,17 @@ Alternatively, you may not specify the `--yes` flag as part of the `kops create
148148

149149
Once the `kops create cluster` command is issued, it provisions the EC2 instances, sets up Auto Scaling Groups, IAM users, Security Groups, installs Kubernetes on each node, then configures the master and worker nodes. This process can take some time based upon the number of master and worker nodes.
150150

151+
Note: If your 'create cluster' fails with an error like:
152+
```
153+
error reading s3://example-kops-state-store-workshop/workshop-prep.cluster.k8s.local/config: Unable to list AWS regions: NoCredentialProviders: no valid providers in chain
154+
caused by: EnvAccessKeyNotFound: failed to find credentials in the environment."
155+
```
156+
, try setting the following environment variables before executing the 'create cluster' command:
157+
```
158+
export AWS_DEFAULT_PROFILE=<your_aws_credentials_profile_name>
159+
export AWS_SDK_LOAD_CONFIG=1
160+
```
161+
151162
Wait for 5-8 minutes and then the cluster can be validated as shown:
152163

153164
```

0 commit comments

Comments
 (0)