AWS Glue Schema

This page shows how to write Terraform and CloudFormation for AWS Glue Schema and write them securely.

aws_glue_schema (Terraform)

The Schema in AWS Glue can be configured in Terraform with the resource name aws_glue_schema. The following sections describe 1 example of how to use the resource and its parameters.

Example Usage from GitHub

glue.tf#L5
resource "aws_glue_schema" "example_avro" {
  schema_name       = format("%s-avro-example", var.cluster_name)
  registry_arn      = aws_glue_registry.msk.arn
  data_format       = "AVRO"
  compatibility     = "NONE"
  schema_definition = <<PROPERTIES

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Provides a Glue Schema resource.

AWS::Glue::Schema (CloudFormation)

The Schema in Glue can be configured in CloudFormation with the resource name AWS::Glue::Schema. The following sections describe 6 examples of how to use the resource and its parameters.

Example Usage from GitHub

GlueSchema.yml#L9
    Type: 'AWS::Glue::Schema'
    Properties:
      CheckpointVersion:
        VersionNumber: 1
      Compatibility: BACKWARD
      DataFormat: AVRO
Create_Schema_Registry_And_Schema_Without_Checkpoint.yml#L26
   Type: AWS::Glue::Schema
   Properties:
    Compatibility: NONE
    DataFormat: AVRO
    Description: !Ref SchemaDescription
    Name: !Ref SchemaName
Create_Schema_Alone.yml#L25
   Type: AWS::Glue::Schema
   Properties:
    CheckpointVersion: {
        IsLatest: Yes,
        VersionNumber: 1
}
Add_Schema_Version.yml#L14
   Type: AWS::Glue::SchemaVersion
   Properties:
    Schema: {
        RegistryName: !Ref RegistryNameforYourNewSchema,
        SchemaName: !Ref SchemaNameforNewVersion
}
template.json#L211
    "AWS::Glue::SchemaVersion": {
      "Type": "AWS::Glue::SchemaVersion",
      "Properties": {}
    },
    "AWS::EC2::Volume": {
      "Type": "AWS::EC2::Volume",
awsResouceIconMatches.json#L1334
        "resourceType": "AWS::Glue::SchemaVersion",
        "filePath": null
      },
      {
        "resourceType": "AWS::Glue::DataCatalogEncryptionSettings",
        "filePath": null

Parameters

Explanation in CloudFormation Registry

The AWS::Glue::Schema is an AWS Glue resource type that manages schemas in the AWS Glue Schema Registry.

Frequently asked questions

What is AWS Glue Schema?

AWS Glue Schema is a resource for Glue of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS Glue Schema?

For Terraform, the msfidelis/aws-msk-glue-kafka-setup source code example is useful. See the Terraform Example section for further details.

For CloudFormation, the gpavankumar9/GlueSchemaRegistry, deepaksadde/cloudformation and deepaksadde/cloudformation source code examples are useful. See the CloudFormation Example section for further details.