aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

Lambda UI showing Cloudwatch Event "Enabled" even if CW rule is disabled

Open sacag opened this issue 6 years ago • 1 comments

Lambda UI is showing the Slider button "Enabled" for the Cloudwatch event, even if the cloudwatch rule for the lambda is disabled. Using .NET CDK (1.24)

image

Reproduction Steps

var rule = new Rule(scope, $"{props.UniqueFunctionSuffix}-EventTrigger-Id", new RuleProps
            {
                Description = $"This cron job invokes the {props.UniqueFunctionSuffix}-Subscriber lambda function every 1 minute",
                Enabled = false,
                RuleName = $"{props.UniqueFunctionSuffix}-CronEvent-Trigger",
                Schedule = Schedule.Rate(Duration.Minutes(1))
            });
            rule.AddTarget(new LambdaFunction(func));

sacag avatar Feb 25 '20 13:02 sacag

Can you let me what the value of the State property of AWS::Events::Rule resource type in the CDK synthesized CloudFormation template, or in the CDK deployed stack?

nija-at avatar Mar 03 '20 17:03 nija-at