Skip to content

Commit

Permalink
ensuring rule table is updated if any of the deployed functions is th…
Browse files Browse the repository at this point in the history
…e rule processor (airbnb#780)

* ensuring rule table is updated if any of the deployed functions is the rule proc

* adding permssion for glue:GetPartition to rule promo iam
  • Loading branch information
ryandeivert authored Jul 2, 2018
1 parent d1b6b7a commit bbd3c38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stream_alert_cli/manage_lambda/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def deploy(options, config):
deploy_targets.update(targets)

# Update the rule table now if the rule processor is being deployed
if 'rule' in options.processor:
if 'rule' in processors:
_update_rule_table(options, config)

# Terraform applies the new package and publishes a new version
Expand Down
1 change: 1 addition & 0 deletions terraform/modules/tf_rule_promotion_iam/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ data "aws_iam_policy_document" "rule_promotion_actions" {
"athena:GetQueryExecution",
"athena:GetQueryResults",
"athena:StartQueryExecution",
"glue:GetPartition",
"glue:GetPartitions",
"glue:GetTable",
]
Expand Down

0 comments on commit bbd3c38

Please sign in to comment.