In some locations AWS doesn’t have the S3 Glacier available directly in the console. For example in October 2023 in Spain. But you have an option to upload files with that class with the S3 API.
When you want upload a file directly to the S3 Glacier, you can use the next command:
aws s3 cp test_file.txt s3://your_bucket/ --storage-class GLACIER_IR --profile your_CLI_profile
After the upload, you can review the file and check the Storage Class:

Enjoy!!!