setcredentials

package
v0.0.0-...-2caf503 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Command performs the "update organization set-credentials" function
	Command = &cobra.Command{
		Use:     "set-credentials",
		Aliases: []string{"sc"},
		Short:   "Set credentials of an organization",
		Long: `Set the credentials used to create and operate the clusters of an organization.

Setting credentials of an organization will result in all future clusters
being run in the account/subscription referenced by the credentials. Once
credentials are set for an organization, this currently cannot be undone.

For details on how to prepare the account/subscription, consult the documentation at

  - https://docs.giantswarm.io/getting-started/cloud-provider-accounts/aws/ (AWS)
  - https://docs.giantswarm.io/getting-started/cloud-provider-accounts/azure/ (Azure)

`,
		Example: `
  gsctl update organization set-credentials -o acme \
    --aws-operator-role arn:aws:iam::<AWS-ACCOUNT-ID>:role/GiantSwarmAWSOperator \
    --aws-admin-role arn:aws:iam::<AWS-ACCOUNT-ID>:role/GiantSwarmAdmin

  gsctl update organization set-credentials -o acme \
    --azure-subscription-id <AZURE-SUBSCRIPTION-ID> \
    --azure-tenant-id <AZURE-TENANT-ID> \
    --azure-client-id <AZURE-CLIENT-ID> \
    --azure-secret-key <AZURE-SECRET-KEY>
`,

		PreRun: printValidation,

		Run: printResult,
	}
)

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL