Skip to content

Commit 18b3eaf

Browse files
committed
add env variables for kops cluster install
1 parent a58fb9e commit 18b3eaf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cluster-install/readme.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,16 @@ 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.", try setting the following environment variables before executing the 'create cluster' command:
155+
156+
```
157+
export AWS_DEFAULT_PROFILE=<your_aws_credentials_profile_name>
158+
export AWS_SDK_LOAD_CONFIG=1
159+
```
160+
151161
Wait for 5-8 minutes and then the cluster can be validated as shown:
152162

153163
```

0 commit comments

Comments
 (0)