@@ -271,13 +271,14 @@ before getting started with Cluster API. See below for the expected settings for
271
271
{{# 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"}}
272
272
{{# tab AWS}}
273
273
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"}}
276
277
{{# tab Linux}}
277
278
278
279
Download the latest release; on Linux, type:
279
280
` ` `
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
281
282
` ` `
282
283
283
284
Make it executable
@@ -294,17 +295,39 @@ Check version to confirm installation
294
295
` ` `
295
296
clusterawsadm version
296
297
` ` `
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
+
297
320
{{# /tab }}
298
321
{{# tab macOS}}
299
322
300
323
Download the latest release; on macOs, type:
301
324
` ` `
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
303
326
` ` `
304
327
305
328
Or if your Mac has an M1 CPU (”Apple Silicon”):
306
329
` ` `
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
308
331
` ` `
309
332
310
333
Make it executable
@@ -321,6 +344,27 @@ Check version to confirm installation
321
344
` ` `
322
345
clusterawsadm version
323
346
` ` `
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
+ ` ` `
324
368
{{# /tab }}
325
369
{{# tab homebrew}}
326
370
@@ -334,11 +378,7 @@ Check version to confirm installation
334
378
clusterawsadm version
335
379
` ` `
336
380
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**
342
382
` ` ` bash
343
383
export AWS_REGION=us-east-1 # This is used to help encode your environment variables
344
384
export AWS_ACCESS_KEY_ID=<your-access-key>
@@ -359,6 +399,43 @@ export AWS_B64ENCODED_CREDENTIALS=$(clusterawsadm bootstrap credentials encode-a
359
399
clusterctl init --infrastructure aws
360
400
` ` `
361
401
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
+
362
439
See the [AWS provider prerequisites] document for more details.
363
440
364
441
{{# /tab }}
0 commit comments