@mapbox/cloudfriend
Version:
Helper functions for assembling CloudFormation templates in JavaScript
63 lines • 1.74 kB
JSON
{
"AWSTemplateFormatVersion": "2010-09-09",
"Metadata": {},
"Parameters": {},
"Rules": {},
"Mappings": {},
"Conditions": {},
"Resources": {
"MyView": {
"Type": "AWS::Glue::Table",
"Properties": {
"CatalogId": {
"Ref": "AWS::AccountId"
},
"DatabaseName": "my_database",
"TableInput": {
"Description": {
"Fn::Sub": "Created by the ${AWS::StackName} CloudFormation stack"
},
"Name": "my_view",
"Parameters": {
"comment": "Presto View",
"presto_view": "true"
},
"PartitionKeys": [],
"TableType": "VIRTUAL_VIEW",
"ViewExpandedText": "/* Presto View */",
"ViewOriginalText": {
"Fn::Sub": [
"/* Presto View: ${view} */",
{
"view": {
"Fn::Base64": {
"Fn::Sub": [
"{\"catalog\":\"awsdatacatalog\",\"schema\":\"${DatabaseName}\",\"originalSql\":\"SELECT * FROM another.table\",\"columns\":[{\"name\":\"column\",\"type\":\"varchar\"}]}",
{
"DatabaseName": "my_database"
}
]
}
}
}
]
},
"StorageDescriptor": {
"Columns": [
{
"Name": "column",
"Type": "string"
}
],
"Compressed": false,
"Location": "",
"NumberOfBuckets": 0,
"SerdeInfo": {},
"StoredAsSubDirectories": false
}
}
}
}
},
"Outputs": {}
}