neulabs-cdk-constructs
Project description
Neulabs CDK Constructs
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,
)
Dev mode
Run in shell
npx projen default
Contributors
License
See the LICENSE
file for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for neulabs-cdk-constructs-0.2.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a74b20a3bafbeb081b038372cd0913824af34961e19c927c83269d0201d3480 |
|
MD5 | 5a17955c0db572697a0c68a6c143f989 |
|
BLAKE2b-256 | b0d6cf3895cd11cb8190d8a8b3c867fcc195474d9133b35d9c9b1a1d76718264 |
Hashes for neulabs_cdk_constructs-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4256e6d83c87d521e418c21a52143052b487dedfc2e9a7aa539da0856ed00112 |
|
MD5 | de7651d9933c30fa8ef895792fa75e75 |
|
BLAKE2b-256 | 68bf44a60378f6b9f5c3ae2e118adc09b5d155f9620b9d9d531eab14427a4a98 |