The awscli package is available from the EPEL repository, which is not enabled by default on RockyLinux.

Enable the EPEL repo by installing epel-release pacakge.

$ sudo dnf install epel-release

Once the EPEL repo is successfully enabled, we can install awscli package.

$ sudo dnf install awscli

Enable and verify that the awscli is installed on the system.

$ aws --version
aws-cli/1.18.156 Python/3.6.8 Linux/4.18.0-425.10.1.el8_7.x86_64 botocore/1.18.15

As a bonus, here is how to configure the AWS credential.

$ aws configure
AWS Access Key ID [None]: ANEXAMPLE2OO4LNPBOXX
AWS Secret Access Key [None]: NTq44tRFRYYSexampleKeyPlr7Nas98P1M/1cYcS
Default region name [None]: ap-southeast-2
Default output format [None]:

Lastly, we can verify that the creditionals has been configured correctly:

$ aws sts get-caller-identity
{
    "UserId": "ANEXAMPLE2OO4LNPBOXX",
    "Account": "144666666666",
    "Arn": "arn:aws:iam::144666666666:user/awsome-user"
}

References: