-
Notifications
You must be signed in to change notification settings - Fork 70
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
fix: apply account/region to more metrics #544
Conversation
09543f1
to
8e391ea
Compare
Pulling out irrelevant code cleanup from #544. Also clarifying in docs that cross-region alarms are not supported by CloudWatch. --- _By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license_
2b0c08b
to
f061978
Compare
f061978
to
3f16a10
Compare
3f16a10
to
092802d
Compare
return metricAccount; | ||
} | ||
|
||
return; |
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.
What happens if the metricAccount
is not defined? Do we want to return account
in those cases or we default to not passing account (which resolves to same account)?
Same question for region below.
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.
If they're not explicitly declared, it should just inherit what the deployment environment context is (i.e. whatever the stack is in, like what a Metric
would normally do if you don't pass in account
or region
).
Addressing a few misses from #533.
Also updates the test in
MonitoringFacade.test.ts
since XAXR alarms aren't possible.Fixes #434, but only in cases where we can infer that the account/region is actually different from the construct scope to prevent unnecessary XAXR alarm errors.
Fixes #428, in cases where the account/region is actually different from the construct scope.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license