skip to Main Content

How to mock Athena query results values with Moto3 for a specific table? – Amazon Web Sevices

I am using pytest and moto3 to test some code similar to this: response = athena_client.start_query_execution( QueryString='SELECT * FROM xyz', QueryExecutionContext={'Database': myDb}, ResultConfiguration={'OutputLocation': someLocation}, WorkGroup=myWG ) execution_id = response['QueryExecutionId'] if response['QueryExecution']['Status']['State'] == 'SUCCEEDED': response = athena_client.get_query_results( QueryExecutionId=execution_id ) results =…

VIEW QUESTION

Cloudformation Outputs: Template format error: Every Value member must be a string – Amazon Web Sevices

Received this error message from Cloudformation after adding output block below: Template format error: Every Value member must be a string. Outputs: NetFwEndpointIds: Description: Array for Network FW Endpoint Ids Value: !GetAtt NetFw.EndpointIds Export: Name: !Sub '${AWS::StackName}-EndpointIds' https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-firewall.html EndpointIds The…

VIEW QUESTION
Back To Top
Search