Setting up STS environment for Red Hat OpenShift Service on AWS (ROSA)
Using ROSA with the Amazon security token service (STS) requires an environment to be set up before clusters can be deployed. This setup process will include installing the AWS Command Line Interface (CLI), ROSA CLI, and OpenShift CLI.
What will you learn?
- Installing AWS ROSA (rosa) Command Line Interfaces
- Configuring AWS CLI
- Checking AWS quotas
- Validating your ROSA environment
What you need before starting:
- Red Hat account
- AWS account
- AWS service quotas appropriate to create and run a ROSA cluster
Creating a cluster environment:
- Sign into your AWS account and enable the ROSA service from the AWS console.
- Install and configure the AWS CLI for your instance.
- Please note that the correct AWS credentials and access key must be specifically used.
- Download the latest version of ROSA and install it.
- Extract the file with the following command: $ tar xvf rosa-linux.tar.gz
- Add rosa to your path: $ sudo mv rosa /usr/local/bin/rosa
- Verify rosa CLI is installed: $ rosa version
- Sign into your Red Hat account through the ROSA CLI and verify the AWS account quotas.
- Run the necessary commands to validate your credentials and prepare your AWS account for cluster deployment.
- For AWS opt-in regions only: set the security token version to version 2 in your AWS account.
- Then install OpenShift CLI (oc) to verify your ROSA installation.
- Download (oc) with the following command: $ rosa download openshift-client
- Extract with this: $ tar xvf openshift-client-linux.tar.gz
- Add (oc) to your path: $ sudo mv oc /usr/local/bin/oc
- Verify (oc) is installed correctly with: $ rosa verify openshift-client
Once these steps are complete, your environment is ready to create a cluster.