worried-plastic-45846
10/12/2020, 3:03 PM# Allow cloudwatch to invoke lambda
lambda_permission = lambda_.Permission(
resource_name=f"{project}-{env}-status-lambda-permissions",
action="lambda:InvokeFunction",
function=status_lambda.name,
principal="<http://events.amazonaws.com|events.amazonaws.com>",
source_arn=event_target.arn
)
A resource is created in the stack, but if I go to the Management Console and check my lambda, there is no trigger configured.
All invocations from Cloudwatch fail. If I proceed to manually create a trigger from the Management Console, everything works as expected.
Do any of you know what's wrong ? Am I maybe using the wrong Pulumi resource type ?No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by