Created
June 22, 2020 08:18
-
-
Save yossale/848fafe1a4d1facb711ac83ddee35ebb to your computer and use it in GitHub Desktop.
Log Group creation and subscription
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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