Skip to content
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

Closed
wants to merge 22 commits into from

Conversation

abbashus
Copy link
Contributor

@abbashus abbashus commented Oct 11, 2021

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

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

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.


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")
Copy link
Member

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")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

health = res.json()

# check master available metric
if "discovered_master" in health and health["discovered_master"]:
Copy link
Member

@owaiskazi19 owaiskazi19 Oct 11, 2021

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)

Copy link
Member

@owaiskazi19 owaiskazi19 Oct 11, 2021

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

@macohen
Copy link
Collaborator

macohen commented Jun 29, 2023

closing this as superseded by a draft PR: #54 which includes CDK2.

@macohen macohen closed this Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants