Last active
January 15, 2021 08:55
-
-
Save jgontrum/a20471e0545546f3f377d1d3df168705 to your computer and use it in GitHub Desktop.
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
lambda_client = boto3.client('lambda') | |
lambda_client.add_permission( | |
FunctionName="MyLambdaFunctionARN", | |
StatementId="IUseTheSameHereAsTheRuleIdButYouDoAsYouPlease", | |
Action="lambda:InvokeFunction", | |
Principal="events.amazonaws.com", | |
SourceArn=rule["RuleArn"] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment