@incdevco/framework
Version:
node.js lambda framework
39 lines • 834 B
JSON
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Template for Logging Stack",
"Parameters": {
"CustomCFResourceFunctionArn": {
"Type": "String"
}
},
"Conditions": {},
"Mappings": {},
"Resources": {
"Bucket": {
"Type": "AWS::S3::Bucket",
"Properties": {
"AccessControl": "LogDeliveryWrite"
}
},
"EmptyBucketBeforeDelete": {
"Type": "Custom::S3BucketEmptyBeforeDelete",
"DependsOn": [
"Bucket"
],
"Properties": {
"ServiceToken": {"Ref": "CustomCFResourceFunctionArn"},
"Options": {
"Bucket": {"Ref": "Bucket"}
}
}
}
},
"Outputs": {
"BucketName": {
"Value": {"Ref": "Bucket"}
},
"DomainName": {
"Value": {"Fn::GetAtt": ["Bucket", "DomainName"]}
}
}
}