-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: OB-36691 add lambda and s3 bucket to record push metrics config #338
Conversation
8665852
to
7bb217f
Compare
7bb217f
to
38490ce
Compare
4d1837a
to
bc72120
Compare
c2407a5
to
31e420c
Compare
ed39eec
to
406b3e2
Compare
FilterUri: !Ref MetricStreamFilterUri | ||
FilterUri: !If | ||
- DeployLambda | ||
- 's3://observeinc/cloudwatchmetrics/filters/default.yaml' |
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.
does the lambda ever use this file? if not does this even need to be a real s3 file?
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.
also we should write some comment here to explain why this is necessary
any unit tests around lambda vs. path in the actual app parameters and how that ends up affecting the result? |
db1970b
to
84505ad
Compare
apps/metricstream/template.yaml
Outdated
# will be replaced with the contents of the file | ||
# specified by the FilterUri parameter. | ||
# The filterURI parameter is a decided in the | ||
# parent stack, where, depending on whether we are |
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.
can you install this AWS Sam app separately without installing the whole stack? you should be able to
84505ad
to
2fc414d
Compare
apps/stack/template.yaml
Outdated
- DeployLambda | ||
- 's3://observeinc/cloudwatchmetrics/filters/default.yaml' | ||
- !Ref MetricStreamFilterUri | ||
# default.yaml must exist. When using a lambda for config we use |
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.
# We provide a yaml file URI here where the contents are a sentinel value that the user would never enter.
# Then the lambda modifies the metricstream to reflect the actual config provided.
# We need this sentinel value here initially so that if we switch back to the yaml based approach,
# the cloudformation stack will recognize that the value from the yaml file has changed and will update.
2fc414d
to
dcd9433
Compare
No description provided.