Cannot get logstash to connect to opensearch, but my python script can

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): 2.11

Describe the issue:
We are trying to migrate from elastic to opensearch. I have written a python script that allows me to connect to opensearch without any problems using the aws_access_key_id and the aws_secret_access_key. However I am when I put these values into logstash, logstash gives me a 403 error

Configuration:

input {
stdin {
codec => json
}
}
output {
opensearch {
ecs_compatibility => disabled
index => “logstash-ingest-%{+YYYY.MM.dd}”
hosts => ‘https://logstash-test.us-east-1.es.amazonaws.com:443
auth_type => {
type => ‘aws_iam’
aws_access_key_id => ‘AAAAAAA’
aws_secret_access_key => ‘BBBBBBBBB’
region => ‘us-east-2’
service_name => ‘es’
}
}
}

Relevant Logs or Screenshots:
[main] Attempted to resurrect connection to dead OpenSearch instance, but got an error {:url=>“https://logstash-test.us-east-1.es.amazonaws.com:443/”, :exception=>LogStash::Outputs::OpenSearch::HttpClient::Pool::BadResponseCodeError, :message=>"Got response code ‘403’ contacting OpenSearch at URL