-
Notifications
You must be signed in to change notification settings - Fork 17
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
CDK (Cloud Development Kit) to create infra for project website search #24
Conversation
Signed-off-by: Abbas Hussain <[email protected]>
Signed-off-by: Abbas Hussain <[email protected]>
Signed-off-by: Abbas Hussain <[email protected]>
Signed-off-by: Abbas Hussain <[email protected]>
Signed-off-by: Abbas Hussain <[email protected]>
Signed-off-by: Abbas Hussain <[email protected]>
|
||
cluster_stack_name = app.node.try_get_context("cluster_stack_name") | ||
network_stack_name = app.node.try_get_context("network_stack_name") | ||
search_access_stack_name = app.node.try_get_context("search_access_stack_name") |
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.
Raise error for search_access_stack_name
as well if not present
cluster_stack_name = app.node.try_get_context("cluster_stack_name") | ||
network_stack_name = app.node.try_get_context("network_stack_name") | ||
search_access_stack_name = app.node.try_get_context("search_access_stack_name") | ||
monitoring_stack_name = app.node.try_get_context("monitoring_stack_name") |
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.
Same as above
cdk/opensearch-website-search/lambdas/monitoring-lambda/monitor.py
Outdated
Show resolved
Hide resolved
cdk/opensearch-website-search/lambdas/monitoring-lambda/monitor.py
Outdated
Show resolved
Hide resolved
cdk/opensearch-website-search/lambdas/monitoring-lambda/monitor.py
Outdated
Show resolved
Hide resolved
health = res.json() | ||
|
||
# check master available metric | ||
if "discovered_master" in health and health["discovered_master"]: |
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 we pull this in a separate method for this check and the rest below?
|
||
def __init__(self, scope: cdk.Construct, construct_id: str, vpc, nlb, opensearch_listener, **kwargs) -> None: | ||
super().__init__(scope, construct_id, **kwargs) | ||
|
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.
Instead of making __init__
bulky. Let's have this file with methods
Signed-off-by: Abbas Hussain <[email protected]>
Signed-off-by: Abbas Hussain <[email protected]>
Signed-off-by: Abbas Hussain <[email protected]>
Signed-off-by: Abbas Hussain <[email protected]>
Signed-off-by: Abbas Hussain <[email protected]>
Signed-off-by: Abbas Hussain <[email protected]>
Signed-off-by: Abbas Hussain <[email protected]>
Signed-off-by: Abbas Hussain <[email protected]>
Signed-off-by: Abbas Hussain <[email protected]>
Signed-off-by: Abbas Hussain <[email protected]>
Signed-off-by: Abbas Hussain <[email protected]>
Signed-off-by: Abbas Hussain <[email protected]>
closing this as superseded by a draft PR: #54 which includes CDK2. |
Description
Initial CDK for creating AWS resources for project website search as defined in RFC. This is not the final code and may require further iterations.
RFC : opensearch-project/OpenSearch#1219
Issues Resolved
#13
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.