You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im migrating our old rules to c7n-org with security hub actions
This policy has always worked:
policies:
- name: phd-alerts
resource: account
comment: Olay PHD alerts
mode:
type: phd
role: arn:aws:iam::111111111111:role/cloud_custodian_role
description: Any PHD alert
actions:
- type: notify
to:
- [email protected]
message: |
A PHD Alert has been created. https://phd.aws.amazon.com/phd/home#/dashboard/open-issues
transport:
type: sns
topic: arn:aws:sns:us-east-1:111111111111:feed-cloud-custodian
Migrating it to security hub fails:
policies:
- name: phd-alerts
resource: account
comment: Olay PHD alerts
mode:
type: phd
role: arn:aws:iam::{account_id}:role/cloud-custodian
description: Any PHD alert
actions:
- type: post-finding
severity_normalized: 40
types:
- "Software and Configuration Checks/AWS Security Best Practices"
What did you expect to happen?
No errors
Cloud Provider
Amazon Web Services (AWS)
Cloud Custodian version and dependency information
c7n-org==0.6.10
Relevant log/traceback output
2021-10-26 20:35:13,155: c7n_org:ERROR Exception running policy:phd-alerts account:monitoring-staging region:us-east-1 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
2021-10-26 20:35:22,198: c7n_org:ERROR Exception running policy:phd-alerts account:monitoring-staging region:us-west-2 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
2021-10-26 20:35:33,953: c7n_org:ERROR Exception running policy:phd-alerts account:monitoring-prod region:us-east-1 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
2021-10-26 20:35:43,188: c7n_org:ERROR Exception running policy:phd-alerts account:monitoring-prod region:us-west-2 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
2021-10-26 20:35:54,044: c7n_org:ERROR Exception running policy:phd-alerts account:events-development region:us-east-1 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
2021-10-26 20:36:06,117: c7n_org:ERROR Exception running policy:phd-alerts account:events-development region:us-west-2 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
2021-10-26 20:36:23,779: c7n_org:ERROR Exception running policy:phd-alerts account:events-beta region:us-east-1 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
2021-10-26 20:36:35,936: c7n_org:ERROR Exception running policy:phd-alerts account:events-beta region:us-west-2 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
2021-10-26 20:36:52,840: c7n_org:ERROR Exception running policy:phd-alerts account:prod-eng-development region:us-east-1 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
2021-10-26 20:37:08,798: c7n_org:ERROR Exception running policy:phd-alerts account:prod-eng-development region:us-west-2 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
2021-10-26 20:37:24,995: c7n_org:ERROR Exception running policy:phd-alerts account:appplatform-beta region:us-east-1 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
2021-10-26 20:37:34,700: c7n_org:ERROR Exception running policy:phd-alerts account:appplatform-beta region:us-west-2 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
2021-10-26 20:37:46,078: c7n_org:ERROR Exception running policy:phd-alerts account:appplatform-development region:us-east-1 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
2021-10-26 20:37:56,792: c7n_org:ERROR Exception running policy:phd-alerts account:appplatform-development region:us-west-2 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
2021-10-26 20:38:08,985: c7n_org:ERROR Exception running policy:phd-alerts account:engine-gamma region:us-east-1 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
2021-10-26 20:38:20,115: c7n_org:ERROR Exception running policy:phd-alerts account:engine-gamma region:us-west-2 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
2021-10-26 20:38:35,716: c7n_org:ERROR Exception running policy:phd-alerts account:identity-staging region:us-east-1 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
2021-10-26 20:38:45,070: c7n_org:ERROR Exception running policy:phd-alerts account:identity-staging region:us-west-2 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
2021-10-26 20:38:56,691: c7n_org:ERROR Exception running policy:phd-alerts account:appplatform-staging region:us-east-1 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
2021-10-26 20:39:05,959: c7n_org:ERROR Exception running policy:phd-alerts account:appplatform-staging region:us-west-2 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
2021-10-26 20:39:16,848: c7n_org:ERROR Exception running policy:phd-alerts account:events-staging region:us-east-1 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
2021-10-26 20:39:29,030: c7n_org:ERROR Exception running policy:phd-alerts account:events-staging region:us-west-2 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
2021-10-26 20:39:45,823: c7n_org:ERROR Exception running policy:phd-alerts account:devplatform-staging region:us-east-1 error:An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed
The text was updated successfully, but these errors were encountered:
Describe the bug
Im migrating our old rules to c7n-org with security hub actions
This policy has always worked:
Migrating it to security hub fails:
What did you expect to happen?
No errors
Cloud Provider
Amazon Web Services (AWS)
Cloud Custodian version and dependency information
Relevant log/traceback output
The text was updated successfully, but these errors were encountered: