Skip to content

Commit 02240ca

Browse files
authored
Merge pull request #7814 from luthermonson/clusterawsadm-windows
📖 Updating clusterawsadm Docs
2 parents 9845887 + 7d1f371 commit 02240ca

File tree

1 file changed

+87
-10
lines changed

1 file changed

+87
-10
lines changed

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

Lines changed: 87 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -271,13 +271,14 @@ before getting started with Cluster API. See below for the expected settings for
271271
{{#tabs name:"tab-installation-infrastructure" tabs:"AWS,Azure,CloudStack,DigitalOcean,Docker,Equinix Metal,GCP,Hetzner,IBM Cloud,KubeKey,KubeVirt,Metal3,Nutanix,OCI,OpenStack,Outscale,VCD,vcluster,Virtink,vSphere"}}
272272
{{#tab AWS}}
273273
274-
Download the latest binary of `clusterawsadm` from the [AWS provider releases].
275-
{{#tabs name:"install-clusterawsadm" tabs:"Linux,macOS,homebrew"}}
274+
Download the latest binary of `clusterawsadm` from the [AWS provider releases]. The [clusterawsadm] command line utility assists with identity and access management (IAM) for [Cluster API Provider AWS][capa].
275+
276+
{{#tabs name:"install-clusterawsadm" tabs:"Linux,macOS,homebrew,Windows"}}
276277
{{#tab Linux}}
277278
278279
Download the latest release; on Linux, type:
279280
```
280-
curl -L {{#releaselink gomodule:"sigs.k8s.io/cluster-api-provider-aws" asset:"clusterawsadm-linux-amd64" version:">=1.0.0"}} -o clusterawsadm
281+
curl -L {{#releaselink gomodule:"sigs.k8s.io/cluster-api-provider-aws" asset:"clusterawsadm-linux-amd64" version:">=2.0.0"}} -o clusterawsadm
281282
```
282283
283284
Make it executable
@@ -294,17 +295,39 @@ Check version to confirm installation
294295
```
295296
clusterawsadm version
296297
```
298+
299+
**Example Usage**
300+
```bash
301+
export AWS_REGION=us-east-1 # This is used to help encode your environment variables
302+
export AWS_ACCESS_KEY_ID=<your-access-key>
303+
export AWS_SECRET_ACCESS_KEY=<your-secret-access-key>
304+
export AWS_SESSION_TOKEN=<session-token> # If you are using Multi-Factor Auth.
305+
306+
# The clusterawsadm utility takes the credentials that you set as environment
307+
# variables and uses them to create a CloudFormation stack in your AWS account
308+
# with the correct IAM resources.
309+
clusterawsadm bootstrap iam create-cloudformation-stack
310+
311+
# Create the base64 encoded credentials using clusterawsadm.
312+
# This command uses your environment variables and encodes
313+
# them in a value to be stored in a Kubernetes Secret.
314+
export AWS_B64ENCODED_CREDENTIALS=$(clusterawsadm bootstrap credentials encode-as-profile)
315+
316+
# Finally, initialize the management cluster
317+
clusterctl init --infrastructure aws
318+
```
319+
297320
{{#/tab }}
298321
{{#tab macOS}}
299322
300323
Download the latest release; on macOs, type:
301324
```
302-
curl -L {{#releaselink gomodule:"sigs.k8s.io/cluster-api-provider-aws" asset:"clusterawsadm-darwin-amd64" version:">=1.0.0"}} -o clusterawsadm
325+
curl -L {{#releaselink gomodule:"sigs.k8s.io/cluster-api-provider-aws" asset:"clusterawsadm-darwin-amd64" version:">=2.0.0"}} -o clusterawsadm
303326
```
304327
305328
Or if your Mac has an M1 CPU (”Apple Silicon”):
306329
```
307-
curl -L {{#releaselink gomodule:"sigs.k8s.io/cluster-api-provider-aws" asset:"clusterawsadm-darwin-arm64" version:">=1.0.0"}} -o clusterawsadm
330+
curl -L {{#releaselink gomodule:"sigs.k8s.io/cluster-api-provider-aws" asset:"clusterawsadm-darwin-arm64" version:">=2.0.0"}} -o clusterawsadm
308331
```
309332
310333
Make it executable
@@ -321,6 +344,27 @@ Check version to confirm installation
321344
```
322345
clusterawsadm version
323346
```
347+
348+
**Example Usage**
349+
```bash
350+
export AWS_REGION=us-east-1 # This is used to help encode your environment variables
351+
export AWS_ACCESS_KEY_ID=<your-access-key>
352+
export AWS_SECRET_ACCESS_KEY=<your-secret-access-key>
353+
export AWS_SESSION_TOKEN=<session-token> # If you are using Multi-Factor Auth.
354+
355+
# The clusterawsadm utility takes the credentials that you set as environment
356+
# variables and uses them to create a CloudFormation stack in your AWS account
357+
# with the correct IAM resources.
358+
clusterawsadm bootstrap iam create-cloudformation-stack
359+
360+
# Create the base64 encoded credentials using clusterawsadm.
361+
# This command uses your environment variables and encodes
362+
# them in a value to be stored in a Kubernetes Secret.
363+
export AWS_B64ENCODED_CREDENTIALS=$(clusterawsadm bootstrap credentials encode-as-profile)
364+
365+
# Finally, initialize the management cluster
366+
clusterctl init --infrastructure aws
367+
```
324368
{{#/tab }}
325369
{{#tab homebrew}}
326370
@@ -334,11 +378,7 @@ Check version to confirm installation
334378
clusterawsadm version
335379
```
336380
337-
{{#/tab }}
338-
{{#/tabs }}
339-
340-
The [clusterawsadm] command line utility assists with identity and access management (IAM) for [Cluster API Provider AWS][capa].
341-
381+
**Example Usage**
342382
```bash
343383
export AWS_REGION=us-east-1 # This is used to help encode your environment variables
344384
export AWS_ACCESS_KEY_ID=<your-access-key>
@@ -359,6 +399,43 @@ export AWS_B64ENCODED_CREDENTIALS=$(clusterawsadm bootstrap credentials encode-a
359399
clusterctl init --infrastructure aws
360400
```
361401
402+
{{#/tab }}
403+
{{#tab Windows}}
404+
405+
Download the latest release; on Windows, type:
406+
```
407+
curl.exe -L {{#releaselink gomodule:"sigs.k8s.io/cluster-api-provider-aws" asset:"clusterawsadm-windows-amd64" version:">=2.0.0"}} -o clusterawsadm.exe
408+
```
409+
410+
Append or prepend the path of that directory to the `PATH` environment variable.
411+
Check version to confirm installation
412+
```
413+
clusterawsadm.exe version
414+
```
415+
416+
**Example Usage in Powershell**
417+
```bash
418+
$Env:AWS_REGION="us-east-1" # This is used to help encode your environment variables
419+
$Env:AWS_ACCESS_KEY_ID="<your-access-key>"
420+
$Env:AWS_SECRET_ACCESS_KEY="<your-secret-access-key>"
421+
$Env:AWS_SESSION_TOKEN="<session-token>" # If you are using Multi-Factor Auth.
422+
423+
# The clusterawsadm utility takes the credentials that you set as environment
424+
# variables and uses them to create a CloudFormation stack in your AWS account
425+
# with the correct IAM resources.
426+
clusterawsadm bootstrap iam create-cloudformation-stack
427+
428+
# Create the base64 encoded credentials using clusterawsadm.
429+
# This command uses your environment variables and encodes
430+
# them in a value to be stored in a Kubernetes Secret.
431+
$Env:AWS_B64ENCODED_CREDENTIALS=$(clusterawsadm bootstrap credentials encode-as-profile)
432+
433+
# Finally, initialize the management cluster
434+
clusterctl init --infrastructure aws
435+
```
436+
{{#/tab }}
437+
{{#/tabs }}
438+
362439
See the [AWS provider prerequisites] document for more details.
363440
364441
{{#/tab }}

0 commit comments

Comments
 (0)