Skip to content

Commit

Permalink
- Fixed EventsRule Targets after troposphere upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
gitwater committed Feb 14, 2022
1 parent fbd453d commit 8b5887d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/paco/cftemplates/eventsrule.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ def __init__(
cfn_export_dict['Input'] = target.input_json

# Events Rule Targets
targets.append(
troposphere.events.Target.from_dict(
target_name,
cfn_export_dict
)
)
targets.append(cfn_export_dict)
# troposphere.events.Target.from_dict(
# target_name,
# cfn_export_dict
# )
# )

# Events Rule Resource
# The Name is needed so that a Lambda can be created and it's Lambda ARN output
Expand All @@ -160,7 +160,6 @@ def __init__(
else:
enabled_state = 'DISABLED'


events_rule_dict = {
'Name': name,
'Description': troposphere.Ref(description_param),
Expand All @@ -174,7 +173,7 @@ def __init__(

event_rule_resource = troposphere.events.Rule.from_dict(
'EventRule',
evens_rule_dict
events_rule_dict
)
event_rule_resource.DependsOn = target_invocation_role_resource
self.template.add_resource(event_rule_resource)
Expand Down

0 comments on commit 8b5887d

Please sign in to comment.