This resource represents an individual schema version of a schema defined in Glue Schema Registry.
resource "awscc_glue_schema_version" "example" {
schema = {
schema_arn = awscc_glue_schema.example.arn
}
schema_definition = jsonencode(
{
type = "record",
name = "r1",
fields = [
{
name = "f1",
type = "int"
},
{ name = "f3",
type = "string"
}
]
}
)
}
resource "awscc_glue_schema" "example" {
name = "example"
registry = {
arn = awscc_glue_registry.example.arn
}
data_format = "AVRO"
compatibility = "NONE"
schema_definition = jsonencode(
{
type = "record",
name = "r1",
fields = [
{
name = "f1",
type = "int"
},
{
name = "f2",
type = "string"
}
]
}
)
tags = [{
key = "Modified By"
value = "AWSCC"
}]
}
resource "awscc_glue_registry" "example" {
name = "example-registry"
description = "Glue registry example"
tags = [{
key = "Modified By"
value = "AWSCC"
}]
}
schema
(Attributes) Identifier for the schema where the schema version will be created. (see below for nested schema)schema_definition
(String) Complete definition of the schema in plain-text.id
(String) Uniquely identifies the resource.version_id
(String) Represents the version ID associated with the schema version.schema
Optional:
registry_name
(String) Name of the registry to identify where the Schema is located.schema_arn
(String) Amazon Resource Name for the Schema. This attribute can be used to uniquely represent the Schema.schema_name
(String) Name of the schema. This parameter requires RegistryName to be provided.Import is supported using the following syntax:
$ terraform import awscc_glue_schema_version.example <resource ID>