AWS::Athena::Workgroup -WorkGroupConfiguration/WorkGroupConfigurationUpdates should support setting the version of the Athena engine
It should allow you to select the following:
- Default => let AWS decide/upgrade
- 1 => Manually set Version 1
- 2 => Manually set Version 2
Athena docs: https://docs.aws.amazon.com/athena/latest/ug/engine-versions-changing.html#engine-versions-changing-changing-the-engine-version
Analytics
Did you try to set the SelectedEngineVersion to Athena engine version 2 with EnforceWorkGroupConfiguration enabled ?
...
WorkGroupConfiguration:
EnforceWorkGroupConfiguration: true
EngineVersion:
SelectedEngineVersion: Athena engine version 2
...
At the time this issue was opened, there wasn’t any support for updating/setting the version. However, now it seems to work, and the documentation has also been updated. I have, however, not seen anything about it in the release notes so I’m not sure if this is yet “official”.
As an aside, I do find it very odd (and very contrary to normal CF functionality) that you have to use a completely different attribute (WorkGroupConfigurationUpdates vs WorkGroupConfiguration) to update an existing resource vs when you create it.
Most helpful comment
At the time this issue was opened, there wasn’t any support for updating/setting the version. However, now it seems to work, and the documentation has also been updated. I have, however, not seen anything about it in the release notes so I’m not sure if this is yet “official”.
As an aside, I do find it very odd (and very contrary to normal CF functionality) that you have to use a completely different attribute (WorkGroupConfigurationUpdates vs WorkGroupConfiguration) to update an existing resource vs when you create it.