You can create a .yaml or .json file, for example: Athena-Workshop.yaml.
AWSTemplateFormatVersion: "2010-09-09"
Description: "CloudFormation template to create an S3 bucket and Athena Workgroup"
Resources:
AthenaS3Bucket:
Type: "AWS::S3::Bucket"
Properties:
BucketName: "my-athena-data-bucket"
AthenaWorkGroup:
Type: "AWS::Athena::WorkGroup"
Properties:
Name: "MyAthenaWorkGroup"
WorkGroupConfiguration:
EnforceWorkGroupConfiguration: true
ResultConfiguration:
OutputLocation: !Sub "s3://${AthenaS3Bucket}/query-results/"


Athena-Workshop.yaml file, then click Next

athena-workshop, then click Next




us-east-1 (N. Virginia), but you can deploy in other regions if needed.