Skip to main content

Construct library for creating a CSV ingest pipeline into OpenSearch with a front end website.

Project description

LASP OpenSearch Data Center CDK Constructs

A construct library for implementing an OpenSearch data center. This library contains the following constructs:

  • BackendStorageConstruct
  • BackupVault
  • Certificate
  • FrontendStorageConstruct
  • NetworkingComponents
  • Frontend
  • OpenSearch
  • CloudWatchAlarmConstruct
  • Ingest
  • DynamoQuery

Example usage:

domain_name = "example.com"
self.frontendStorage = FrontendStorage(
    self, domain_name, construct_id, environment, **kwargs
)

account_type = "dev"
self.backendStorage = BackendStorage(
    self,
    construct_id,
    dropbox_bucket_name=f"{account_type}-example-dropbox",
    ingest_bucket_name=f"{account_type}-example-ingest",
    opensearch_snapshot_bucket_name=f"{account_type}-example-opensearch-manual-snapshot",
)

frontend_bucket = self.frontendStorage.frontend_bucket
self.frontend = FrontEndConstruct(
    self,
    construct_id=construct_id,
    account_type=account_type,
    domain_name=domain_name,
    frontend_bucket=frontend_bucket,
    waf_ip_range="1.1.1.0/24",  # Example IP range
    environment=environment,
)

self.networking = NetworkingComponentsConstruct(self, construct_id)

self.certificate = CertificateConstruct(
    self, "CertificateConstruct", domain_name
)

# TODO: add example usage for constructs as they are completed

Networking Construct

L3 Construct containing a custom VPC with specific subnet configurations.

Back End Storage Construct

L3 Construct containing the necessary storage infrastructure that supports the back end ingest pipeline and Opensearch.

Ingest Construct

Not yet implemented as a L3 Construct

Installation

The package is available on PyPI:

pip install lasp-opensearch-data-center

Roadmap and Plans

  • Incorporate the last L3 construct for OpenSearch and data ingest
  • Add static code analysis and automated security testing (e.g. Bandit) using Github actions
  • Write user documentation for putting these lego blocks together, including example code for Stacks (e.g. an example CDK app)
    • Will include detailed instructions on customizing ingest handler code
  • Clean up the docstrings and improve overall code polish
  • Write developer documentation for developing further

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lasp_opensearch_data_center-1.0.0rc1.tar.gz (19.3 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page