I am trying to create new Glue data catalogs in Athena. It always fails with INVALID_INPUT, no other error context.
Here is the API that I am using https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Athena/Client.html#create_data_catalog-instance_method.
It always fails with an invalid input when selecting type = GLUE.
require 'aws-sdk-athena'
Aws::Athena::Client.new.create_data_catalog(name: 'testing', type: "GLUE")
Aws::Athena::Errors::InvalidRequestException (INVALID_INPUT)
from (irb):51:in `rescue in irb_binding'
from (irb):51
Even using the AWS CLI it fails with the same cryptic error.
aws athena create-data-catalog --region us-west-1 --name testing --type GLUE
An error occurred (InvalidRequestException) when calling the CreateDataCatalog operation: INVALID_INPUT
How do I create a new Glue Data Catalog for Athena? Or am I limited to the default, AwsDataCatalog
?
region
being a parameter ofcreate-data-catalog
according to cli documentation – Philipp JohannisAWS_REGION=us-west-1
. Philipp. – allen