mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
|
|
// Module included in the following assemblies:
|
|
//
|
|
// * rosa_cli/rosa-get-started-cli.adoc
|
|
|
|
:_content-type: PROCEDURE
|
|
[id="rosa-using-bash-script_{context}"]
|
|
= Using a Bash script
|
|
|
|
|
|
This is an example workflow of how to use a Bash script with the `rosa` CLI.
|
|
|
|
.Prerequisites
|
|
Make sure that AWS credentials are available as one of the following options:
|
|
|
|
* AWS profile
|
|
* Environment variables (`AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`)
|
|
|
|
.Procedure
|
|
|
|
. Initialize `rosa` using an {cluster-manager-first} offline token link:https://console.redhat.com/openshift/token/rosa[from Red Hat]:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ rosa init --token=<token>
|
|
----
|
|
|
|
. Create the {product-title} (ROSA) cluster:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ rosa create cluster --cluster-name=<cluster_name>
|
|
----
|
|
//Note to writers: The create cluster command specifically uses --cluster-name because a cluster ID does not exist yet. All other commands use --cluster because either the name or the ID can be used.
|
|
|
|
. Add an identity provider (IDP):
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ rosa create idp --cluster=<cluster_name> --type=<identity_provider> [arguments]
|
|
----
|
|
|
|
. Add a `dedicated-admin` user:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ rosa grant user dedicated-admin --user=<idp_user_name> --cluster=<cluster_name>
|
|
----
|