Creates an AWS Glue catalog database and a user defined function within that database.

Terraform Template

resource "aws_glue_catalog_database" "example" {
  name = "my_database"
}

resource "aws_glue_user_defined_function" "example" {
  catalog_id = aws_glue_catalog_database.example.catalog_id
  class_name = "class"
  database_name = aws_glue_catalog_database.example.name
  name = "my_func"
  owner_name = "owner"
  owner_type = "GROUP"

  resource_uris {
    resource_type = "ARCHIVE"
    uri = "uri"
  }
}