astroctl organization service-account create
Create a service account
Synopsis
Create a service account in the active organization.
Give --name and --role, or describe it in a YAML or JSON file with -f (use - for stdin). The file holds the fields name, role and description. A service account cannot be an organization owner. It has no keys until you issue one with 'astroctl org service-account keys create'.
Terminal
astroctl organization service-account create [flags]
Examples
Terminal
# Create a service account that can deploy
astroctl org service-account create --name ci --role Editor --description "Release pipeline"
# From a file
astroctl org service-account create -f service-account.yaml
Options
Terminal
--description string What the account is used for
-f, --file string YAML or JSON file describing the service account; - reads stdin
-h, --help help for create
--name string Name of the service account, unique among the organization's active service accounts
-o, --output string Output format (table|wide|json|yaml) (default "table")
--role string Role: Viewer, Editor or Admin
SEE ALSO
- astroctl organization service-account - Manage the service accounts of the active organization