fast-jewelry-98070
06/10/2023, 2:07 PMmake sure that your IAM user or Batch role (METAFLOW_ECS_S3_ACCESS_ IAM_ROLE in the Metaflow config) has a policy called AmazonAthenaFullAccess attached to it, which allows Athena queries to be executed. Also, make sure the AWS region is set in your configuration, for example, by setting the environment variable AWS_DEFAULT_REGION=us-east-1How exactly set these AWS variables? Like in the AWS console or in the local config file? Thanks for any help in advance!
victorious-lawyer-58417
06/10/2023, 5:40 PMfast-jewelry-98070
06/10/2023, 7:43 PMvictorious-lawyer-58417
06/10/2023, 9:18 PMmetaflow configure show | grep METAFLOW_ECS_S3_ACCESS_IAM_ROLE
2. Note the role name that it outputs (starting with arn:awss:iam:)
3. Log in to the AWS Console, navigate to IAM, find Roles, you should find the role there.
4. Edit the role and attach a policy called AmazonAthenaFullAccess to it.victorious-lawyer-58417
06/10/2023, 9:19 PM~/.aws/config - for instance
[default]
region=us-west-2victorious-lawyer-58417
06/10/2023, 9:19 PM@batch tasksvictorious-lawyer-58417
06/10/2023, 9:19 PMfast-jewelry-98070
06/11/2023, 11:16 PM