aloof-dress-1001
04/06/2022, 9:01 AMgreat-queen-39697
04/06/2022, 8:28 PMCatalogTableStorageDescriptor
that, if you continue to follow that down in the API, leads you to the schema_arn, which is where you reference the schema you created. That's how you get the schema in. So the second call would look something like this (note that I haven't tested this, so you might need to modify it):
aws_glue_catalog_table = aws.glue.CatalogTable(...,
storage_descriptor=aws.glue.CatalogTable.CatalogTableStorageDescriptorArgs(.....,
schema_reference=aws.glue.CatalogTable.CatalogTableStorageDescriptorSchemaReference(
....,
schema_id=aws.glue.CatalogTableStorageDescriptorSchemaReferenceSchemaID(
...,
schema_arn=glue_schema_for_affected_entities.arn)
)
),
opts=...
)
aloof-dress-1001
04/07/2022, 8:54 AMaws_glue_catalog_table = aws.glue.CatalogTable("glue-for-xm-table",
database_name="glue-for-xm-database",
name="glue-for-xm-table",
storage_descriptor=aws.glue.CatalogTableStorageDescriptorArgs(
schema_reference=aws.glue.CatalogTableStorageDescriptorSchemaReferenceArgs(
schema_version_number=1,
schema_id=aws.glue.CatalogTableStorageDescriptorSchemaReferenceSchemaIdArgs(
schema_arn=glue_schema_for_affected_entities.arn
)
)
),
opts=pulumi.ResourceOptions(depends_on=[aws_glue_catalog_database])
)
great-queen-39697
04/07/2022, 2:56 PM