Configuring your AWS account
After you complete the AWS prerequisites, configure your AWS account and enable the OpenShift Container Platform (ROSA) service.
Tip
AWS Security Token Service (STS) is the recommended credential mode for installing and interacting with clusters on OpenShift Container Platform because it provides enhanced security.
Configuring your AWS account
To configure your AWS account to use the ROSA service, complete the following steps.
-
Review and complete the deployment prerequisites and policies.
-
Create a Red Hat account, if you do not already have one. Then, check your email for a verification link. You will need these credentials to install ROSA.
-
Log in to the Amazon Web Services (AWS) account that you want to use.
A dedicated AWS account is recommended to run production clusters. If you are using AWS Organizations, you can use an AWS account within your organization or create a new one.
If you are using AWS Organizations and you need to have a service control policy (SCP) applied to the AWS account you plan to use, see AWS Prerequisites for details on the minimum required SCP.
As part of the cluster creation process,
rosaestablishes anosdCcsAdminIAM user. This user uses the IAM credentials you provide when configuring the AWS CLI.Note
This user has
Programmaticaccess enabled and theAdministratorAccesspolicy attached to it. -
Enable the ROSA service in the AWS Console.
-
Sign in to your AWS account.
-
To enable ROSA, go to the ROSA service and select Enable OpenShift.
-
-
Install and configure the AWS CLI.
-
Follow the AWS command-line interface documentation to install and configure the AWS CLI for your operating system.
Specify the correct
aws_access_key_idandaws_secret_access_keyin the.aws/credentialsfile. See AWS Configuration basics in the AWS documentation. -
Set a default AWS region.
Note
It is recommended to set the default AWS region by using the environment variable.
The ROSA service evaluates regions in the following priority order:
-
The region specified when running the
rosacommand with the--regionflag. -
The region set in the
AWS_DEFAULT_REGIONenvironment variable. See Environment variables to configure the AWS CLI in the AWS documentation. -
The default region set in your AWS configuration file. See Quick configuration with aws configure in the AWS documentation.
-
-
Optional: Configure your AWS CLI settings and credentials by using an AWS named profile.
rosaevaluates AWS named profiles in the following priority order:-
The profile specified when running the
rosacommand with the--profileflag. -
The profile set in the
AWS_PROFILEenvironment variable. See Named profiles in the AWS documentation.
-
-
Verify the AWS CLI is installed and configured correctly by running the following command to query the AWS API:
$ aws sts get-caller-identity --output textExample output<aws_account_id> arn:aws:iam::<aws_account_id>:user/<username> <aws_user_id>After completing these steps, install ROSA.
-