Resource: aws_glue_schema

Provides a Glue Schema resource.

Example Usage

resource "aws_glue_schema" "example" {
  schema_name       = "example"
  registry_arn      = aws_glue_registry.test.arn
  data_format       = "AVRO"
  compatibility     = "NONE"
  schema_definition = "{\"type\": \"record\", \"name\": \"r1\", \"fields\": [ {\"name\": \"f1\", \"type\": \"int\"}, {\"name\": \"f2\", \"type\": \"string\"} ]}"
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import Glue Registries using arn. For example:

import {
  to = aws_glue_schema.example
  id = "arn:aws:glue:us-west-2:123456789012:schema/example/example"
}

Using terraform import, import Glue Registries using arn. For example:

% terraform import aws_glue_schema.example arn:aws:glue:us-west-2:123456789012:schema/example/example