@mapbox/cloudfriend
Version:
Helper functions for assembling CloudFormation templates in JavaScript
62 lines • 1.61 kB
JSON
{
"AWSTemplateFormatVersion": "2010-09-09",
"Metadata": {},
"Parameters": {},
"Rules": {},
"Mappings": {},
"Conditions": {},
"Resources": {
"MyTable": {
"Type": "AWS::Glue::Table",
"Properties": {
"CatalogId": {
"Ref": "AWS::AccountId"
},
"DatabaseName": "my_database",
"Name": "my_table",
"OpenTableFormatInput": {
"IcebergInput": {
"MetadataOperation": "CREATE",
"Version": "2",
"IcebergTableInput": {
"Location": "s3://fake/location",
"Schema": {
"Type": "struct",
"Fields": [
{
"Name": "column",
"Type": "string",
"Id": 1,
"Required": true
}
]
}
}
}
}
}
},
"MyTableOrphanFileDeletionOptimizer": {
"Type": "AWS::Glue::TableOptimizer",
"DependsOn": "MyTable",
"Properties": {
"CatalogId": {
"Ref": "AWS::AccountId"
},
"DatabaseName": "my_database",
"TableName": "my_table",
"Type": "orphan_file_deletion",
"TableOptimizerConfiguration": {
"RoleArn": "arn:aws:iam::123456789012:role/OrphanFileDeletionRole",
"Enabled": true,
"OrphanFileDeletionConfiguration": {
"IcebergConfiguration": {
"OrphanFileRetentionPeriodInDays": 3
}
}
}
}
}
},
"Outputs": {}
}