Skip to main content

neulabs-cdk-constructs

Project description

Neulabs CDK Constructs

NPM PyPI PyPI License

The neulabs-cdk-constructs library contains CDK-based constructs and stacks to allow the creation of cloud infrastructure on AWS.

The purpose of the library is to expose modules that can facilitate the creation and maintenance of the infrastructure as code.

Inside you will find generic stacks that allow the creation of services by simply instantiating a class, or constructs that implement logic to facilitate the developer and many other aspects.

We decided to develop it in Typescript, using projen for repository management, and the JSII library to be able to compile the neulabs-cdk-constructs package into multiple languages.

Usage

Package Installation (npm):

yarn add neulabs-cdk-constructs
# or
npm install neulabs-cdk-constructs

Package Installation (python):

pip install neulabs-cdk-constructs

Examples

Stack for integration between AWS and New Relic.

File app.py

import aws_cdk as cdk

from neulabs_cdk_constructs.stacks.monitoring.newrelic import EndpointUrlLogs
from neulabs_cdk_constructs.stacks.monitoring.newrelic import EndpointUrlMetrics
from neulabs_cdk_constructs.stacks.monitoring.newrelic import NewRelicStack

app = cdk.App()

environment = cdk.Environment(
    account=os.getenv('CDK_DEFAULT_ACCOUNT'),
    region=os.getenv('CDK_DEFAULT_REGION'),
)

stage = os.getenv('ENVIRONMENT', 'develop')
new_relic_account_id = os.getenv('NEW_RELIC_ACCOUNT_ID')
new_relic_license_key = os.getenv('NEW_RELIC_LICENSE_KEY')

new_relic_stack = NewRelicStack(
    app,
    'NewRelicStack',
    env=environment,
    stage=stage,
    new_relic_bucket_name=f'neulabs-newrelic-{stage}',
    new_relic_account_id=new_relic_account_id,
    new_relic_license_key=new_relic_license_key,
    new_relic_api_url_metrics=EndpointUrlMetrics.EU_METRICS,
    new_relic_api_url_logs=EndpointUrlLogs.EU_LOGS,
)

Contributors

License

See the LICENSE file for more information.

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

neulabs-cdk-constructs-0.2.3.tar.gz (373.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neulabs_cdk_constructs-0.2.3-py3-none-any.whl (376.2 kB view details)

Uploaded Python 3

File details

Details for the file neulabs-cdk-constructs-0.2.3.tar.gz.

File metadata

  • Download URL: neulabs-cdk-constructs-0.2.3.tar.gz
  • Upload date:
  • Size: 373.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for neulabs-cdk-constructs-0.2.3.tar.gz
Algorithm Hash digest
SHA256 1504af5a81c049abd4b739572e10f31ac92a63a6cb4a78ebab0a72c5f8594e23
MD5 8b6af45f945c6b67173b6f99b5106bf3
BLAKE2b-256 2c0949b6abb8179c6c4ed932454e193276111f2c91320cb694ca18feb3575919

See more details on using hashes here.

File details

Details for the file neulabs_cdk_constructs-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for neulabs_cdk_constructs-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f7eaa7ec0cdac4657d13ebad659d3e61790ece570cfa24df7726c4c86a9f7e42
MD5 b4cbb9fdc3bd139b5f3b53cc25fc6d60
BLAKE2b-256 e158e627aca300131788cffbacb9108a2257ed64b4281d7bcf25f03c6a56dc7d

See more details on using hashes here.

Supported by

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