Skip to content

Instantly share code, notes, and snippets.

@yossale
Created June 22, 2020 08:18
Show Gist options
  • Save yossale/848fafe1a4d1facb711ac83ddee35ebb to your computer and use it in GitHub Desktop.
Save yossale/848fafe1a4d1facb711ac83ddee35ebb to your computer and use it in GitHub Desktop.
Log Group creation and subscription
"Func01LogGroup": {
"Type": "AWS::Logs::LogGroup",
"Properties": {
"LogGroupName": {
"Fn::Sub": [
"/aws/Lambda/${LambdaName}",
{
"LambdaName": {
"Ref": "Func01Name"
}
}
]
}
}
},
"Func01SubscriptionFilter": {
"Type": "AWS::Logs::SubscriptionFilter",
"Properties": {
"LogGroupName": {
"Ref": "Func01LogGroup"
},
"DestinationArn": {
"Fn::GetAtt": [
"ShippingLogsLambda",
"Arn"
]
},
"FilterPattern": ""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment