New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Cloud Watch Alarm Tags #6598
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks
c7n/resources/cw.py
Outdated
} | ||
|
||
|
||
@Alarm.action_registry.register('tag') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we may also need remove-tag, mark-for-op and marked-for-op. Would it be better to just use universal_taggble?
Thanks that’s a good call, to get all the tag filter/actions for free so to
speak.
…On Thu, Apr 1, 2021 at 4:51 PM Pratyush Mishra ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In c7n/resources/cw.py
<#6598 (comment)>
:
> @@ -37,6 +45,35 @@ class resource_type(TypeInfo):
cfn_type = config_type = 'AWS::CloudWatch::Alarm'
retry = staticmethod(get_retry(('Throttled',)))
+ source_mapping = {
+ 'describe': DescribeAlarm,
+ 'config': ConfigSource
+ }
+
+
***@***.***_registry.register('tag')
I think we may also need remove-tag, mark-for-op and marked-for-op. Would
it be better to just use universal_taggble?
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#6598 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAFJERML56RHYZYKGQPBTTTGTMERANCNFSM42HVX7MQ>
.
|
Only thing I can see here is that, Response captured with config as source:
vs boto response:
|
re config, the last few prs on config support, i'm noticing there's pretty large variance on the number of important resource data they fail to capture. any issues with config data capture, are definitely something to take up directly with the service team via tam, its not something we can really handle. we can note those deficiets in the resource doc string is probably the best we can do, but its probably something that can age out. |
Yup, making a note of these so that I can bring it up to our TAM. Thanks @kapilt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks
This enhancement uses the augment function to add Tags to CloudWatch Alarm resources in Custodian, allowing users to filter by Alarm Tags using the Value Filter. The PR also includes a "Tag" action for CloudWatch alarms which allows users to add tags to alarm resources.
Issue Link: #6454