Skip to content

Commit f915aaf

Browse files
committed
📖 Improve quickstart for AWS components installation
Signed-off-by: Vince Prignano <[email protected]>
1 parent 589e45c commit f915aaf

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

docs/book/src/user/quick-start.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,26 @@ kubectl create -f https://github.com/kubernetes-sigs/cluster-api-bootstrap-provi
4444
{{#tabs name:"tab-installation-infrastructure" tabs:"AWS,vSphere"}}
4545
{{#tab AWS}}
4646

47-
Check the [AWS provider releases](https://github.com/kubernetes-sigs/cluster-api-provider-aws/releases) for an up-to-date components file.
48-
4947
For more information about prerequisites, credentials management, or permissions for AWS, visit the [getting started guide](https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/master/docs/getting-started.md).
5048

49+
#### Install clusterawsadm
50+
51+
Download the latest binary of `clusterawsadm` from the [AWS provider releases] and make sure to place it in your path.
52+
53+
##### Create the components
54+
55+
Check the [AWS provider releases] for an up-to-date components file.
56+
5157
```bash
52-
kubectl create -f https://github.com/kubernetes-sigs/cluster-api-provider-aws/releases/download/v0.4.0/infrastructure-components.yaml
58+
# Create the base64 encoded credentials using clusterawsadm.
59+
# This command uses your environment variables and encodes
60+
# them in a value to be stored in a Kubernetes Secret.
61+
export AWS_B64ENCODED_CREDENTIALS=$(clusterawsadm alpha bootstrap encode-aws-credentials)
62+
63+
# Create the components.
64+
curl -L https://github.com/kubernetes-sigs/cluster-api-provider-aws/releases/download/v0.4.0/infrastructure-components.yaml \
65+
| envsubst \
66+
| kubectl create -f -
5367
```
5468

5569
{{#/tab }}
@@ -508,5 +522,5 @@ spec:
508522
[kind]: https://sigs.k8s.io/kind
509523
[management cluster]: ../reference/glossary.md#management-cluster
510524
[target cluster]: ../reference/glossary.md#target-cluster
511-
525+
[AWS provider releases]: https://github.com/kubernetes-sigs/cluster-api-provider-aws/releases
512526

0 commit comments

Comments
 (0)