Problem connecting to AWS Athena


I am having issues adding an Athena instance to Metabase, I have the latest version of Metabase running in a docker container and first I got some issues that the EC2 instance that the docker is running on doesn't have the appropriate permissions.

That has been fixed but now I get this error instead:
[JDBC Driver]PreparedStatement stmt5047094121 was not found in WorkGroup primary (Service: AmazonAthena; Status Code: 400; Error Code: ResourceNotFoundException; Request ID: 26aa5f35-f531-4685-9442-d7d7348c9212; Proxy: null)

Any ideas on what I am doing wrong?

Here is some more info on the environment:
"browser-info": {
"language": "sv-SE",
"platform": "Win32",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36",
"vendor": "Google Inc."
"system-info": {
"file.encoding": "UTF-8",
"": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.18+10",
"java.vendor": "Eclipse Adoptium",
"java.vendor.url": "",
"java.version": "11.0.18",
"": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.18+10",
"": "Linux",
"os.version": "6.1.23-36.46.amzn2023.x86_64",
"user.language": "en",
"user.timezone": "GMT"
"metabase-info": {
"databases": [
"hosting-env": "unknown",
"application-database": "postgres",
"application-database-details": {
"database": {
"name": "PostgreSQL",
"version": "15.2"
"jdbc-driver": {
"name": "PostgreSQL JDBC Driver",
"version": "42.5.1"
"run-mode": "prod",
"version": {
"date": "2023-04-05",
"tag": "v0.46.1",
"branch": "release-x.46.x",
"hash": "12a6e1d"
"settings": {
"report-timezone": null

Hi, I'm not an Athena expert, but seems that there's something that's not there: How workgroups work - Amazon Athena

Yeah, I dont understand whats causing this because I think I have given all the access it should need in an AWS policy (based on AWS best practices) :

    "Version": "2012-10-17",
    "Statement": [
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
            "Resource": "*"
            "Sid": "VisualEditor1",
            "Effect": "Allow",
            "Action": [
            "Resource": [
            "Sid": "VisualEditor2",
            "Effect": "Allow",
            "Action": [
            "Resource": "arn:aws:s3:::meta-athena-spillover"

and I am setting primary as the setting in Metabase when trying to add the Athena DB

Can you give super user access just to make sure you are able to connect?