I am specifying a NamedQuery in my CloudFormation template and I am following the documentation from here.
I have also created a WorkGroup in my CloudFormation template following the documentation from here. I have my NamedQuery configured so that it DependsOn my WorkGroup.
Everything deploys fine when I deploy the CloudFormation stack. The problem is that my named query always ends up in the "primary" workgroup on Athena. How can I get it to end up in my custom WorkGroup that is created in my CloudFormation template? In the docs, it doesn't seem like specifying WorkGroup is supported by CloudFormation, so is this even possible?