Logstash AWS code 403

I'm specifying ssl as true in the config file and I'm exporting the AWS keys as shown in AWS manual:
https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains-logstash.html

Is there anything else needed for the authentication?